Page 1 of 1

Warning: Creating default object from empty value

Posted: 28 Aug 2011, 08:52
by gutualgs
Guys how can I fix this error?

Warning: Creating default object from empty value in /homepages/9/d339614912/htdocs/xxxxx/administrator/components/com_phocagallery/libraries/phocagallery/image/imagefront.php on line 370

Re: Warning: Creating default object from empty value

Posted: 31 Aug 2011, 18:57
by Jan
Hmmm, no idea what this means? Which Joomla! you are running, which php version you are running?

Re: Warning: Creating default object from empty value

Posted: 21 Apr 2012, 11:32
by Andreas
Any news I have the same problem!
PhocaGallery V 3.2.0
Joomla 2.5.4
PHP 5.4

Andreas

Re: Warning: Creating default object from empty value

Posted: 26 Apr 2012, 08:44
by Andreas
Hi Jan,
I solved my problem. Maybe that's useful for you. I think you speak German too, if not, I will try to translate it.

http://www.joomlaportal.de/joomla-2-5-j ... value.html

best regards
Andreas

Re: Warning: Creating default object from empty value

Posted: 26 Apr 2012, 13:45
by Jan
Ok

Re: Warning: Creating default object from empty value

Posted: 30 Mar 2016, 12:06
by Sidney
I see the same error in server log file . How to fix it?
/administrator/components/com_phocagallery/libraries/phocagallery/image/imagefront.php on line 370
Joomla 1.5.26
Apache Version 2.2.29
PHP Version 5.4.36
MySQL Version 5.5.48-cll

Re: Warning: Creating default object from empty value

Posted: 01 Apr 2016, 12:07
by Jan
Hi, which version of Phoca Gallery are you using in Joomla! 1.5, so I can tell you the row which should be changed.

Jan

Re: Warning: Creating default object from empty value

Posted: 01 Apr 2016, 12:14
by Sidney
Latest Phoca Gallery 2.8.1 for Joomla 1.5

Re: Warning: Creating default object from empty value

Posted: 07 Apr 2016, 17:16
by Jan
Hi, on line 370

add the following code:

Code: Select all

$fileThumbnail = new StdClass();
before:

$fileThumbnail->abs = '';

Jan