php error opening global options

Phoca Gallery - image gallery extension
thk_jo
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 25 Dec 2015, 23:43

php error opening global options

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: php error opening global options

Post 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:

Code: Select all

protected $type = 'PhocaHead';
to:

Code: Select all

public $type = 'PhocaHead';
Jan
If you find Phoca extensions useful, please support the project
thk_jo
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 25 Dec 2015, 23:43

Re: php error opening global options

Post 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? :cry:

Greetings, Tom
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: php error opening global options

Post 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 :idea:
Image
Jan
If you find Phoca extensions useful, please support the project
thk_jo
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 25 Dec 2015, 23:43

Re: php error opening global options

Post 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
Image

You spoke about database entry. Can you please localize it more detailled? I did not find sth. useful.

Thanks ahead,

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

Re: php error opening global options

Post 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
If you find Phoca extensions useful, please support the project
thk_jo
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 25 Dec 2015, 23:43

Re: php error opening global options

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: php error opening global options

Post 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
If you find Phoca extensions useful, please support the project
thk_jo
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 25 Dec 2015, 23:43

Re: php error opening global options

Post by thk_jo »

Yeah found the "evil" entry, thank UUU :)
The options do not work, but the thumbs R ok now.

Thx again, Tom
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 49144
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: php error opening global options

Post by Jan »

Ok
If you find Phoca extensions useful, please support the project
Post Reply