Gallery plugin broken

Phoca Gallery - image gallery extension
rbuelund
Phoca Professional
Phoca Professional
Posts: 115
Joined: 22 Mar 2015, 00:18
Contact:

Re: Gallery plugin broken

Post by rbuelund »

PHP 7.4.16 and Joomla 3.9.27

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

Re: Gallery plugin broken

Post by Jan »

Hi, try to reinstall the component with the same version (4.4.2)

Can you see following folders/files on your server:
administrator\components\com_phocagallery\libraries\Phoca
administrator\components\com_phocagallery\libraries\Phoca\Render
administrator\components\com_phocagallery\libraries\Phoca\Adminviews.php

Jan
If you find Phoca extensions useful, please support the project
rbuelund
Phoca Professional
Phoca Professional
Posts: 115
Joined: 22 Mar 2015, 00:18
Contact:

Re: Gallery plugin broken

Post by rbuelund »

I have theese folders/files
administrator\components\com_phocagallery\libraries\Phoca
administrator\components\com_phocagallery\libraries\Phoca\Render
administrator\components\com_phocagallery\libraries\Phoca\Render\Adminview.php
administrator\components\com_phocagallery\libraries\Phoca\Render\Adminviews.php
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Gallery plugin broken

Post by Jan »

Hmmm, testing now on different PHP versions, I get no problems there, this looks like the autoload does not load the library, but hard to say why? :-( What is your server system? (linux/windows)
If you find Phoca extensions useful, please support the project
rbuelund
Phoca Professional
Phoca Professional
Posts: 115
Joined: 22 Mar 2015, 00:18
Contact:

Re: Gallery plugin broken

Post by rbuelund »

=============
System Information
=============
php: Linux linux7.123hotel.dk 3.10.0-962.3.2.lve1.5.54.el7.x86_64 #1 SMP Thu Apr 29 11:16:05 UTC 2021 x86_64
dbserver: mysql
dbversion: 5.7.34-37
dbcollation: latin1_swedish_ci
dbconnectioncollation: utf8mb4_general_ci
phpversion: 7.4.16
server: Apache
sapi_name: litespeed
version: Joomla! 3.9.27 Stable [ Amani ] 25-May-2021 15:00 GMT
platform: Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
useragent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0

=============
PHP Settings
=============
safe_mode: false
display_errors: false
short_open_tag: true
file_uploads: true
magic_quotes_gpc: false
register_globals: false
output_buffering: true
open_basedir:
session.save_path: xxxxxx
session.auto_start: 0
disable_functions:
xml: true
zlib: true
zip: true
mbstring: true
iconv: true
max_input_vars: 20000
rbuelund
Phoca Professional
Phoca Professional
Posts: 115
Joined: 22 Mar 2015, 00:18
Contact:

Re: Gallery plugin broken

Post by rbuelund »

Actually I can see that the gallery button works in backend, but not in frontend ??
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Gallery plugin broken

Post by Jan »

Do you get the problem immediately when you click on the button?

Image

Or after clicking on some of the links?

Do you use some cache option in frontend?

Jan
If you find Phoca extensions useful, please support the project
rbuelund
Phoca Professional
Phoca Professional
Posts: 115
Joined: 22 Mar 2015, 00:18
Contact:

Re: Gallery plugin broken

Post by rbuelund »

This error comes imediately after I press the button in the editor.
Image
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Gallery plugin broken

Post by Jan »

What about the cache? Did you clear the cache in browser? Did you clear it in website (if used)?

Are you sure, all the plugins (content, button) and component are 100% latest version? I did install of component, button plugin, content plugin now, everything is OK there :idea:

EDIT:

Try to edit this file:
components\com_phocagallery\phocagallery.php

line cca 17

FROM:

Code: Select all

// Require the base controller
require_once( JPATH_COMPONENT.'/controller.php' );
TO:

Code: Select all

require JPATH_ADMINISTRATOR . '/components/com_phocagallery/libraries/autoloadPhoca.php';
// Require the base controller
require_once( JPATH_COMPONENT.'/controller.php' );
And let me know, if something changed.

Jan
If you find Phoca extensions useful, please support the project
rbuelund
Phoca Professional
Phoca Professional
Posts: 115
Joined: 22 Mar 2015, 00:18
Contact:

Re: Gallery plugin broken

Post by rbuelund »

Inserting the require line from above makes it work !?? So what is wrong here ??
Post Reply