Error after upgrade 2.5.0 -> 2.5.2

Phoca Gallery - image gallery extension
reko
Phoca Professional
Phoca Professional
Posts: 407
Joined: 29 Dec 2008, 22:06

Error after upgrade 2.5.0 -> 2.5.2

Post by reko »

hi jan,
i got the following errormessage (when trying to view the categories page) after the latest upgrade:
Catchable fatal error: Object of class stdClass could not be converted to string in /.../administrator/components/com_phocagallery/libraries/phocagallery/file/file.php on line 22
it's the same form the back-link within a category or from a menu-link.

regards,
rk
tifre64
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 24 Jul 2009, 11:25

Re: Error after upgrade 2.5.0 -> 2.5.2

Post by tifre64 »

I'm Also seeing this error, downgraded to 2.5.0 and all ok,
2.5.2 not working.
wein
Phoca Newbie
Phoca Newbie
Posts: 2
Joined: 22 Jul 2009, 20:02

Re: Error after upgrade 2.5.0 -> 2.5.2

Post by wein »

Same problem, are there any solutions?
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49125
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error after upgrade 2.5.0 -> 2.5.2

Post by Jan »

Hi, try to see this:

http://forum.joomla.org/viewtopic.php?t=131755

maybe it will help :idea:
Jan
If you find Phoca extensions useful, please support the project
reko
Phoca Professional
Phoca Professional
Posts: 407
Joined: 29 Dec 2008, 22:06

Re: Error after upgrade 2.5.0 -> 2.5.2

Post by reko »

The issue has to do with PHP 5.2+ breaking certain backward-compatibility of converting a PHP 'object' to a text string. You either need to downgrade below 5.2, or the code where the error occurs needs to be 'properly fixed' to address the change (the fixes should then work on any version...).
I can confirm that our server uses php 5.2 (to be precise: 5.2.6-1+lenny3), downgrading the php is not an option. other than that I don't have the technical knowlegde to understand this error :(

in the meantime i'm using again pg 2.5.0 and wait for a fix.

thank you,
rk
tifre64
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 24 Jul 2009, 11:25

Re: Error after upgrade 2.5.0 -> 2.5.2

Post by tifre64 »

some of use 3rd party hosting solutions, so downgrading PHP is not an option

you need to fix this, not blame someone else

2.5.0 works fine

awaiting a fix
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49125
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error after upgrade 2.5.0 -> 2.5.2

Post by Jan »

you need to fix this
Yes, I would like to fix it but I am testing it on my different servers: winxp(php5),suse(php5,php4),freebsd(php5) and get no such problem.

If you let me know what exactly needs to be fixed (without loosing the functionality and working on different environments) I will do the fix immediately.
not blame someone else
Sorry I don't understand? Do you mean that if I paste here some link which can include possible problem solving, then it is a blaming someone else? This forum should help people, I don't have any reason to blaming someone else :idea:

Jan
If you find Phoca extensions useful, please support the project
reko
Phoca Professional
Phoca Professional
Posts: 407
Joined: 29 Dec 2008, 22:06

Re: Error after upgrade 2.5.0 -> 2.5.2

Post by reko »

tifre64 wrote:...you need to fix this, not blame someone else
...
awaiting a fix
sorry, but i have to jump in here: i think jan is doing a great job developing and supporting phoca gallery, and he is doing this all for free!
so it you're not satisfied with the work he is doing, don't use it! otherwise be polite, report the bug as precise as possible and maybe (if you can) try help him finding a solution for the error. i'm sure he is already doing his best to fix this issue soon...

regards,
rk
hartleyheaton
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 15 Dec 2008, 19:51

Re: Error after upgrade 2.5.0 -> 2.5.2

Post by hartleyheaton »

Hi

I have just done a test upgrade to 2.5.3 on a local server, before I applied this to my site, and I am getting the same problem - Catchable fatal error: Object of class stdClass could not be converted to string in \administrator\components\com_phocagallery\libraries\phocagallery\file\file.php on line 22. I am running xampp on a windows system as my test machine.

I am using PHP5.2.5 and although I could downgrade this to an earlier version the site is running on 5.2.10 which I can't change. I am running Joomla 1.5.10, Apache/2.2.8.

From the postings it seems that version 2.5.0 would possibly work but when I tried to download this from the download page I get a 404 error and the alternate link only takes me to a download of 2.5.3. Any idea where I can obtain 2.5.0 from?

Thanks
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49125
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error after upgrade 2.5.0 -> 2.5.2

Post by Jan »

Hi, see:
http://joomlacode.org/gf/project/phocag ... ge_id=3942

(but for now, there is some problem on joomlacode.org, so 404 is displayed while donwloading, I hope it will be fixed soon)

The problem with the error is, there were no changes in this area between 2.5.0 and 2.5.2

CODE 2.5.0 (line 22):
function getTitleFromFile(&$filename, $displayExt = 0) {
$filename = str_replace('//', '/', $filename);

CODE 2.5.2 (line 22):
function getTitleFromFile(&$filename, $displayExt = 0) {
$filename = str_replace('//', '/', $filename);

So I need more information. This code was not changed, please let me know if you have changed some other code, e.g. upgraded the Joomla!, or PHP, or etc.

Let me know by which action this error occurs (which view, after which action)

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