Page 1 of 1

Warning: Creating default object from empty value on line 411

Posted: 18 Apr 2017, 10:38
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.

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

Posted: 18 Apr 2017, 13:48
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

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

Posted: 18 Apr 2017, 17:23
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

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

Posted: 20 Apr 2017, 15:54
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

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

Posted: 21 Apr 2017, 11:23
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...

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

Posted: 27 Apr 2017, 01:34
by Jan
Ok