Warning: Creating default object from empty value on line 411

General Forum
lef11
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 18 Apr 2017, 10:13

Warning: Creating default object from empty value on line 411

Post by lef11 »

Hello i have this error message

Warning: Creating default object from empty value in /home/sotiropo/public_html/administrator/components/com_phocagallery/libraries/phocagallery/image/imagefront.php on line 412

Also i had and the same warning on line 370 but i put your code in line 370 "$fileThumbnail = new StdClass();" and now everything is ok.

I have joomla 1.5.26
phoca gallery 2.8.1
Apache Version 2.4.25
PHP Version 5.6.30

Can you help me;
Thank you anyway.

Tags:
christine
Phoca Hero
Phoca Hero
Posts: 2723
Joined: 28 Nov 2010, 17:20

Re: Warning: Creating default object from empty value on line 411

Post by christine »

Hi,

first of all: Joomla 1.5 > Support ended on 31 December 2012; for Joomla 2.5 > 2014
you should think about migration from J 1.5 to 2.5 and then to J 3.6.5

PHP version 5.6.30 is too high for Joomla 1.5 > https://downloads.joomla.org/technical-requirements

Info about migration: https://www.phoca.cz/documents/2-phoca-g ... ca-gallery
current PG versions for Joomla: https://www.phoca.cz/download/category/1 ... -component

Kind regards, Christine
lef11
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 18 Apr 2017, 10:13

Re: Warning: Creating default object from empty value on line 411

Post by lef11 »

Thank you very much for your advices.I know that is the correct move and I will update the site in joomla 3 soon as possible but in this moment i have to fix this error. So , anyone who have some answer what to do?
Thanks
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Warning: Creating default object from empty value on line 411

Post by Jan »

Hi, in such case you need need to edit all the parts with this problem. e.g. on line cca 410

$image = new StdClass();

etc.

Jan
If you find Phoca extensions useful, please support the project
lef11
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 18 Apr 2017, 10:13

Re: Warning: Creating default object from empty value on line 411

Post by lef11 »

Jan , thank you very much for your advices. It seems everything is ok now. You are amazing!!!! Also is true that you are a phoca Hero...
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Warning: Creating default object from empty value on line 411

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply