Author Topic: Book display broken after upgrading to Joomla 3.4.4  (Read 1529 times)

Offline whowd

  • Coccinella
  • *
  • Posts: 2
  • Karma: +0/-0
Book display broken after upgrading to Joomla 3.4.4
« 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:

Quote
0 - 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

Any help would be appreciated.

Offline whowd

  • Coccinella
  • *
  • Posts: 2
  • Karma: +0/-0

Offline sergiuseni

  • Coccinella
  • *
  • Posts: 11
  • Karma: +0/-0
Re: Book display broken after upgrading to Joomla 3.4.4
« Reply #2 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! :(

Offline federica

  • Amministratore
  • Delfino
  • *****
  • Posts: 1.026
  • Karma: +1/-0
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
http://www.antivirushelp.it
stacca la spina!

Offline Lstafford

  • Coccinella
  • *
  • Posts: 6
  • Karma: +0/-0
Re: Book display broken after upgrading to Joomla 3.4.4
« Reply #4 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
Code: [Select]
<Div class="controls">  within that file.
Any assistance is appreciated.
Lee

Offline Lstafford

  • Coccinella
  • *
  • Posts: 6
  • Karma: +0/-0
Re: Book display broken after upgrading to Joomla 3.4.4
« Reply #5 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: 
Code: [Select]
<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.

Offline federica

  • Amministratore
  • Delfino
  • *****
  • Posts: 1.026
  • Karma: +1/-0
Re: Book display broken after upgrading to Joomla 3.4.4
« Reply #6 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
Al mondo ci sono 10 tipi di persone, quelli che hanno capito il codice binario e quelli che non l'hanno capito.
http://www.antivirushelp.it
stacca la spina!