Gallery plugin broken
-
- Phoca Professional
- Posts: 115
- Joined: 22 Mar 2015, 00:18
- Contact:
- Jan
- Phoca Hero
- Posts: 48701
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Gallery plugin broken
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
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
-
- Phoca Professional
- Posts: 115
- Joined: 22 Mar 2015, 00:18
- Contact:
Re: Gallery plugin broken
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
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
- Jan
- Phoca Hero
- Posts: 48701
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Gallery plugin broken
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
-
- Phoca Professional
- Posts: 115
- Joined: 22 Mar 2015, 00:18
- Contact:
Re: Gallery plugin broken
=============
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
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
-
- Phoca Professional
- Posts: 115
- Joined: 22 Mar 2015, 00:18
- Contact:
Re: Gallery plugin broken
Actually I can see that the gallery button works in backend, but not in frontend ??
- Jan
- Phoca Hero
- Posts: 48701
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Gallery plugin broken
Do you get the problem immediately when you click on the button?

Or after clicking on some of the links?
Do you use some cache option in frontend?
Jan

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
-
- Phoca Professional
- Posts: 115
- Joined: 22 Mar 2015, 00:18
- Contact:
Re: Gallery plugin broken
This error comes imediately after I press the button in the editor.


- Jan
- Phoca Hero
- Posts: 48701
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Gallery plugin broken
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
EDIT:
Try to edit this file:
components\com_phocagallery\phocagallery.php
line cca 17
FROM:
TO:
And let me know, if something changed.
Jan
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

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' );
Code: Select all
require JPATH_ADMINISTRATOR . '/components/com_phocagallery/libraries/autoloadPhoca.php';
// Require the base controller
require_once( JPATH_COMPONENT.'/controller.php' );
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Professional
- Posts: 115
- Joined: 22 Mar 2015, 00:18
- Contact:
Re: Gallery plugin broken
Inserting the require line from above makes it work !?? So what is wrong here ??