Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

500 - DateTime::__construct() [datetime.--construc
(1 viewing) (1) Guest
Universal booking and reservations component for Joomla!.

NOTE: This category has been locked. If you have purchased paid version, please, use our Support Ticket system instead. If you are using free edition, please see the Community Support section.

TOPIC: 500 - DateTime::__construct() [datetime.--construc

500 - DateTime::__construct() [datetime.--construc 11 years, 4 months ago #35281

  • esi
  • OFFLINE
  • Posts: 8
I get the following error:

500 - DateTime::__construct() [datetime.--construct]: Failed to parse time string (2013-W00) at position 4 (-): Unexpected character

I got this message when i went to book the week of 0/2013. How of i fix this?
The topic has been locked.

Re: 500 - DateTime::__construct() [datetime.--construc 11 years, 4 months ago #35282

  • esi
  • OFFLINE
  • Posts: 8
The topic has been locked.

Re: 500 - DateTime::__construct() [datetime.--construc 11 years, 4 months ago #35300

Hi, I'm having the same issue, when I have weekly calender and then some one try to select 0/2013 the user got 500 page, please see attached picture,
I tried all the solutions in your link but non of them works for me,
I have Artio Booking 1.4.5
Php version: 5.3.19
Joomla 2.5.7


weekly.JPG



please help

============== all steps here did not work for me ==================
I got the answer from here: www.artio.net/support-forums/booking/cus...e-construct/strana-2
The topic has been locked.

Re: 500 - DateTime::__construct() [datetime.--construc 11 years, 4 months ago #35301

I have added the code to my .htaccess file but i'm still have the same problem with 500 page as above picture.

AddType application/x-httpd-php53 .php

this code is only for monthly calender what about the weekly ???

please help if that going to work. thanks,

 /**
* Get months select for quick navigator.
*
* @param string $name name of HTML select box
* @param int $selectedMonth selected month from user request
* @param int $selectedYear selected year from user request
* @param int $deep set calendar available deepth
* @param string $attribs custom HTML tag params
* @return string HTML
*/

function getMonthsSelect($name, $selectedMonth, $selectedYear, $deep, $attribs = '')
{
$arr = array();
 
$date = JFactory::getDate();
 
$m = $date->toFormat('%m');
$y = $date->toFormat('%Y');
 
for ($i = 0; $i <= $deep; $i ++) {
$date = JFactory::getDate("$y-$m-01 + $i month");
/* @var $date JDate */
$arr[] = JHTML::_('select.option', ((int) $date->toFormat('%m') . ',' . (int) $date->toFormat('%Y')), ($date->toFormat('%B') . '/' . $date->toFormat('%Y')));
}
return JHTML::_('select.genericlist', $arr, $name, $attribs, 'value', 'text', $selectedMonth . ',' . $selectedYear);
}
 
The topic has been locked.

Re: 500 - DateTime::__construct() [datetime.--construc 11 years, 4 months ago #35310

  • esi
  • OFFLINE
  • Posts: 8
Still having this issue when clients click first week in 2013. Any date before that is fine. It doesn't seem to recognize week of 0/2013.
The topic has been locked.

Re: 500 - DateTime::__construct() [datetime.--construc 11 years, 4 months ago #35410

I'm having the same issue - please help us fix this.

Thanks in advance!
The topic has been locked.
User Login Empty