Page 1 of 1
Error after Update > Call to undefined method ...
Posted: 18 Jan 2021, 11:47
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
Re: Error after Update > Call to undefined method ...
Posted: 18 Jan 2021, 13:28
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
Re: Error after Update > Call to undefined method ...
Posted: 18 Jan 2021, 16:16
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
Re: Error after Update > Call to undefined method ...
Posted: 18 Jan 2021, 16:45
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
Re: Error after Update > Call to undefined method ...
Posted: 18 Jan 2021, 16:53
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
To solve it, try to comment the default.php line 203
Jan
Re: Error after Update > Call to undefined method ...
Posted: 25 Jan 2021, 21:59
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?"
Re: Error after Update > Call to undefined method ...
Posted: 27 Jan 2021, 01:20
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.
Re: Error after Update > Call to undefined method ...
Posted: 28 Jan 2021, 01:29
by Jan
Ok
Re: Error after Update > Call to undefined method ...
Posted: 03 Feb 2021, 14:23
by gpeter73
Yes, it was the Template Override.
Thanks for the advice.
Re: Error after Update > Call to undefined method ...
Posted: 03 Feb 2021, 19:17
by Jan
Ok.