Page 2 of 3

Re: Gallery plugin broken

Posted: 09 Jun 2021, 12:46
by rbuelund
PHP 7.4.16 and Joomla 3.9.27

Re: Gallery plugin broken

Posted: 09 Jun 2021, 12:58
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

Re: Gallery plugin broken

Posted: 09 Jun 2021, 13:04
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

Re: Gallery plugin broken

Posted: 13 Jun 2021, 12:54
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)

Re: Gallery plugin broken

Posted: 13 Jun 2021, 13:05
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

Re: Gallery plugin broken

Posted: 13 Jun 2021, 13:10
by rbuelund
Actually I can see that the gallery button works in backend, but not in frontend ??

Re: Gallery plugin broken

Posted: 13 Jun 2021, 19:04
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

Re: Gallery plugin broken

Posted: 13 Jun 2021, 19:29
by rbuelund
This error comes imediately after I press the button in the editor.
Image

Re: Gallery plugin broken

Posted: 15 Jun 2021, 14:33
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

Re: Gallery plugin broken

Posted: 15 Jun 2021, 20:20
by rbuelund
Inserting the require line from above makes it work !?? So what is wrong here ??