Error after Update > Call to undefined method ...

Phoca Gallery - image gallery extension
gpeter73
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 18 Jan 2021, 11:43

Error after Update > Call to undefined method ...

Post by gpeter73 »

After the last Update the Gallery doesn't work anymore.
We receiving the following error:

Code: Select all

0 - Call to undefined method PhocaGalleryUtils::getInfo()
PhocaGallery Version: 4.4.0
Joomla Version: 3.9.24

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

Re: Error after Update > Call to undefined method ...

Post by christine »

Hi,

- which PHP Version?
- which Template?

Would be useful to enable debug mode and error reporting in Joomla! Configuration.
Error reporting to Maxium. Debug Settings: Yes. To get more information where this problem occurs. So called "Call Stack"

Kind regards
Christine
gpeter73
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 18 Jan 2021, 11:43

Re: Error after Update > Call to undefined method ...

Post by gpeter73 »

Hi Christine,

we using PHP 7.3.11.
The Templated ist designed by my self.
Error reporting says nothing, just debugging.


https://i.ibb.co/RgXfCWR/phoca-gallery-error1.png
christine
Phoca Hero
Phoca Hero
Posts: 2819
Joined: 28 Nov 2010, 17:20

Re: Error after Update > Call to undefined method ...

Post by christine »

Hi,

thanks for debugging, that's what I meant with "Call Stack".

I'm not sure, but do you use template override?

JROOT/templates/your template/html/com_phocagallery/category/default.php

Kind regards
Christine
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error after Update > Call to undefined method ...

Post by Jan »

Hi,
yes, from the screenshot it seems like the error comes from template override:

templates/eulenhof/com_phocagallery/category/default.php on line 203

So this is much more a question on template developer or in case of customized code on somehow who did the override in the template :idea:

To solve it, try to comment the default.php line 203

Jan
If you find Phoca extensions useful, please support the project
User avatar
Grover
Phoca Member
Phoca Member
Posts: 16
Joined: 24 Aug 2020, 21:04

Re: Error after Update > Call to undefined method ...

Post by Grover »

I found this post in Italian:

https://blog.dangerx82.it/joomla/308-jo ... tinfo.html

He seems to suggest changing:

Code: Select all

 echo PhocaGalleryUtils :: getInfo ();
to

Code: Select all

 echo PhocaGalleryUtils::getExtInfo(); 
Doing that displayed something [previously just an error message] but not the photos. He mentions this but I can't understand this part about the "override files":
The solution to the frontend display problem is now very simple. The old override files are deleted and a new override of the same view is generated with the desired change.
What are these "override files" and how does one make a "new override?"
User avatar
Grover
Phoca Member
Phoca Member
Posts: 16
Joined: 24 Aug 2020, 21:04

Re: Error after Update > Call to undefined method ...

Post by Grover »

SOLUTION: I received this message from the person in Italy explaining about the overrides:
Hello Grover! Override is a method to just override a view in a component in Joomla!. You can see it on the folder of your template below the subfolder html. It is more easy doing it if from the backend of Joomla: go on the menu Extensions > Template > Template list and after selected your template, go to the create override section, select the component and finally the view you want override. Automatically Joomla will create a copy of the files of the view in the folder templates/your_template/html/component_name/view_name. This is very usefull for customize your site, but not in that case: The problem with phocadownload was that these files in the html folder of my template call a method of Phocadownload that not exists because they are an older version of the component. Deleting these files can solve the problem.
It worked perfectly. I had to delete overrides for both "categories view" and "category view" after changing

Code: Select all

echo PhocaGalleryUtils :: getInfo ();
as per a previous post.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error after Update > Call to undefined method ...

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
gpeter73
Phoca Newbie
Phoca Newbie
Posts: 3
Joined: 18 Jan 2021, 11:43

Re: Error after Update > Call to undefined method ...

Post by gpeter73 »

Yes, it was the Template Override.
Thanks for the advice.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48403
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Error after Update > Call to undefined method ...

Post by Jan »

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