Mob: 07760

ee-web thinks... a bit

Go on, make my day ... leave a comment

php update and joomla 1.5 – solving a couple of errors

March 28th, 2014 by Edward

Many of my clients are still running joomla 1.5 . Recently the hosts that I use upgraded their php to 5.4. This is good news… but has caused some problems with the sites.

Firstly here’s what happens on the front end:
loads of lines of nasty php error codes

Lots and lots of nasty strtotime() errors. Older version so php weren’t so strict about setting the time┬ázone .

Put this in the top line of the configuration.php file – get rid of all the front end


… and bob’s your uncle

Secondly I found an error in the back end, but only very occasionally – for example on the list of articles page.

Warning: Creating default object from empty value in … administrator/components/com_content/controller.php on line 97

This time php doesn’t want to use an empty value so just add $section = new stdclass; before $section->title = ‘All Articles’; on line 96 thus:

$section = new stdclass; //edward addition
$section->title = ‘All Articles’;
$section->id = 0;

And again, bob’s your uncle.


Edward owns and runs ee-web design and has been building websites for over 12 years. He is passionate about... most things really

Was this post helpful or interesting? Spread the news.

  1. Worth pointing out that of you use these fixes, they will work – but you’ll probably need to change the character for the single speech marks in the code – I have found that if I do a simple cut and paste it wont work until these characters are replaced – so just cut and paste the whole code into you editor, then highlight the first ‘ and replace it with the ‘ on your keyboard – yes the look the same here, but if you look carefully at what pastes into Dreamweaver you’ll see its different – least it was for mine

    Comment by Edward — June 28, 2014 @ 1:17 pm

  2. Thanks. Very me helping.

    Comment by draff — November 20, 2015 @ 6:42 am

Leave a comment