Warning: Creating default object from empty value

General Forum
gutualgs
Phoca Newbie
Phoca Newbie
Posts: 1
Joined: 28 Aug 2011, 08:47

Warning: Creating default object from empty value

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Warning: Creating default object from empty value

Post by Jan »

Hmmm, no idea what this means? Which Joomla! you are running, which php version you are running?
If you find Phoca extensions useful, please support the project
Andreas
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 21 Apr 2012, 11:24

Re: Warning: Creating default object from empty value

Post by Andreas »

Any news I have the same problem!
PhocaGallery V 3.2.0
Joomla 2.5.4
PHP 5.4

Andreas
Andreas
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 21 Apr 2012, 11:24

Re: Warning: Creating default object from empty value

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Warning: Creating default object from empty value

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Sidney
Phoca Member
Phoca Member
Posts: 10
Joined: 29 Jun 2010, 10:04

Re: Warning: Creating default object from empty value

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Warning: Creating default object from empty value

Post 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
If you find Phoca extensions useful, please support the project
Sidney
Phoca Member
Phoca Member
Posts: 10
Joined: 29 Jun 2010, 10:04

Re: Warning: Creating default object from empty value

Post by Sidney »

Latest Phoca Gallery 2.8.1 for Joomla 1.5
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47887
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Warning: Creating default object from empty value

Post by Jan »

Hi, on line 370

add the following code:

Code: Select all

$fileThumbnail = new StdClass();
before:

$fileThumbnail->abs = '';

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