Page 1 of 1
php error opening global options
Posted: 26 Dec 2015, 00:05
by thk_jo
Hello,
when I try to open the options in the right upper corner in the Phoca Gallery Control Panel, there appears the error
Fatal error: Access level to JFormFieldPhocaHead::$type must be public (as in class JFormField) in
.../administrator/components/com_phocagallery/models/fields/phocahead.php on line 16
(Same problem in Phoca Download by the way.)
Joomla! 2.5.28
Version 3.2.8 of Phoca Gallery (updated after the problem from 3.2.6)
Some Context:
I cannot set the Thumbnail Creation Status back to "enable" (after handling a too big file with stopping the process)
If nobody knows how to debug this, how can I change the setting in the php-code or so?
I searched in vain in the code and in the database for some setting- or ini-file.
Thank you in advance, Tom
Re: php error opening global options
Posted: 27 Dec 2015, 12:15
by Jan
Hi, options of extension (in this case Phoca Gallery) are stored in database, in Joomla! table - extensions - there every extension has own options.
Or go to this file:
administrator\components\com_phocagallery\models\fields\phocahead.php
and change from:
to:
Jan
Re: php error opening global options
Posted: 27 Dec 2015, 21:42
by thk_jo
Hello Jan,
thanks for reply, but seems that both advices won't work.
I tried also some other changes in the phocahead.php before. This one
change
protected $type = 'PhocaHead';
to
public $type = 'PhocaHead';
provides now
Fatal error:
Class JFormFieldPhocaHead contains 1 abstract method and must therefore be declared abstract or implement
the remaining methods (JFormField::_getInput) in
.../administrator/components/com_phocagallery/models/fields/phocahead.php on line 16
In the database the table '
extensions' seems not to provide any phoca-gallery-options to set.
In every data set there's only a field 'manifest_cache' with no regarding information.
Are there some other proposals or did I mistake sth?
Greetings, Tom
Re: php error opening global options
Posted: 02 Jan 2016, 02:23
by Jan
Hi, are you sure, you run Joomla! 2.5.28 and Phoca Gallery 3.2.8. I am testing it now and get no such problems

Jan
Re: php error opening global options
Posted: 12 Jan 2016, 21:54
by thk_jo
Hi,
yes and yes.
Maybe the error exists since I forgot to smallen a pic before creating a allery. The Phocadownload-Option has the same error.
I did not use those options before, so I dunno since when it occurs exactly.
Now I found a copy (on another pc ) V. 3.2.6 running on local webserver working, but when I copied the whole administrator/.../phocagallery folder to the server, nothing changed. Seems the setting is not there.
The error remains when clicking options
You spoke about database entry. Can you please localize it more detailled? I did not find sth. useful.
Thanks ahead,
Thomas
Re: php error opening global options
Posted: 15 Jan 2016, 00:12
by Jan
Hi, with database, I meant, that the options which are stored there, are saved in Joomla! tables, but this seems to have nothing to do with the error.
Did you try to do this change:
viewtopic.php?f=1&t=38756&p=120313#p120023
from protected to public?
Jan
Re: php error opening global options
Posted: 16 Jan 2016, 11:11
by thk_jo
Yes, and I reported the newcoming errors in my answer on Dec 27.
I tried several changes...
Most important for me is to change Thumbnail Creation Status back to "enable" .
If the <Oprions> won't work, can I change the thumb creation setting with a database entry?
And which exactly it would be?
Thanks ahead, Tom
Re: php error opening global options
Posted: 18 Jan 2016, 14:12
by Jan
Hi, yes, Options of components are stored in Joomla! extension table - in column params (Joomla! 2.5):
jos_extensions -> column params- there you can change the values.
Jan
Re: php error opening global options
Posted: 19 Jan 2016, 22:37
by thk_jo
Yeah found the "evil" entry, thank UUU
The options do not work, but the thumbs R ok now.
Thx again, Tom
Re: php error opening global options
Posted: 27 Jan 2016, 00:27
by Jan
Ok