Vox Populi(x) forum

Alexandria Book Library => Supporto (Support) => Topic started by: whowd on 23 September 2015, 17:51:02

Title: Book display broken after upgrading to Joomla 3.4.4
Post by: whowd on 23 September 2015, 17:51:02
After upgrading to Joomla 3.4.4 and using Alexandria Book Library version 3.1.0, when you try to view a book detail you receive the following error message:

Quote0 - DateTime::__construct(): Failed to parse time string (%2015-%09-%23) at position 0 (%): Unexpected character

Screenshot: https://www.dropbox.com/s/2s9ldzg8usuxcfh/Screenshot%202015-09-23%2010.46.00.png?dl=0 (https://www.dropbox.com/s/2s9ldzg8usuxcfh/Screenshot%202015-09-23%2010.46.00.png?dl=0)

Any help would be appreciated.
Title: Re: Book display broken after upgrading to Joomla 3.4.4
Post by: whowd on 23 September 2015, 19:13:21
Here is an example URL where this error is occuring:

http://speciallearningcenter.com/equipment-lending-catalog/17-equipment-lending-catalog/switch/22-adapted-buggy-race-car
Title: Re: Book display broken after upgrading to Joomla 3.4.4
Post by: sergiuseni on 24 September 2015, 08:40:51
I have the same problem, and if i put Voting on Hide, and Hits on Hide, the page is appear, but the lend button is missing! :(
Title: Re: Book display broken after upgrading to Joomla 3.4.4
Post by: federica on 14 October 2015, 11:59:45
Hi sergiuseni,
please see http://forum.voxpopulix.org/supporto-(support)/problema-con-joomla-3-4-4/msg2816/#msg2816
Title: Re: Book display broken after upgrading to Joomla 3.4.4
Post by: Lstafford on 30 April 2016, 20:10:25
I have similar problem with the "Book" layout for my menu item.  When I go to the page that layout displayed, I get the same error:
"DateTime::__construct(): Failed to parse time string (%2016-%04-%30) at position 0 (%): Unexpected character"
It is interesting that it only happens when I have logged in as a registered user, as a public visitor to the site, I do not get the error.
I am using SourceCoast SCLogin for accessing the registered part of my front end website.

I wasn't able to find the lines of code in your earlier post.  I do not have the <Div class="controls">  within that file.
Any assistance is appreciated.
Lee
Title: Re: Book display broken after upgrading to Joomla 3.4.4
Post by: Lstafford on 30 April 2016, 20:29:43
I was able to find the code that was affected.  My code wasn't for the same class, but the changes worked.  I made the same corrections to my code it was found at lines 238-245.  My code now looks like this:  <div class="control-group">
<div class="control-label"><label for="lend_out"><?php echo JText::_'COM_ABOOK_LEND_OUT' );?></label></div>
                                <div class="controls"><?php echo JHtml::_("calendar"JHtml::_("date"'now''Ym-d'), "lend_out""lend_out",'%Y-%m-%d');?></div>
</div>
<div class="control-group">
<div class="control-label"><label for="lend_in"><?php echo JText::_'COM_ABOOK_LEND_IN' );?></label></div>
                        <div class="controls"><?php echo JHtml::_("calendar"JHtml::_("date"'now''Ym-d'), "lend_in""lend_in"'%Y-%m-%d');?></div>
</div>

Maybe others have this version and it will help.
My view is working now.
Title: Re: Book display broken after upgrading to Joomla 3.4.4
Post by: federica on 03 May 2016, 15:52:14
Hi Lstafford,
many thanks!
My earlier post refers to Abook 3.1.1. To oldest version please follow Lstafford