Cannot access offset of type string on string

Phoca Gallery - image gallery extension
User avatar
forlx.62
Phoca Member
Phoca Member
Posts: 21
Joined: 29 Oct 2022, 22:35

Cannot access offset of type string on string

Post by forlx.62 »

Hello,

i've installed phoca gallery since years, and it was working fine.

but since days, i cannot access to the component in admin joomla.
i received this error "Cannot access offset of type string on string ".

joomla version : 3.10.11
phocogallery : 4.3.0 (15/05/2016) from extension management screen because no access to phoca component
PHP : 8.1.11
apache : 2.4.54

i was preparing the upgrade to joomla 4 when i saw this error.

in the site side, i received an error but it seems to be solved by the solution found here "https://www.phoca.cz/forum/viewtopic.php?t=57587"

how can i resolve my issue in admin side of joomla ?

thanks in adavance
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 48714
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

Re: Cannot access offset of type string on string

Post by Jan »

Hi, if you have almost latest PHP version (8.1) you need to have almost latest Joomla (4) and Phoca Gallery (4.5.2) If you run Phoca Gallery version which was released a long time before PHP 8.1, then it is just not ready for this PHP version.

So the only way is to update to latest versions or downgrade the PHP version of old Joomla and Phoca Gallery :idea:

Jan
If you find Phoca extensions useful, please support the project
User avatar
forlx.62
Phoca Member
Phoca Member
Posts: 21
Joined: 29 Oct 2022, 22:35

Re: Cannot access offset of type string on string

Post by forlx.62 »

Hello Jan,

thanks for your answer.
How to upgrade to the latest phoca gallery whereas i don't have an access to the admin screen ?
I didn't have a notification to upgrade to the latest version since i installed phoca gallery.
User avatar
forlx.62
Phoca Member
Phoca Member
Posts: 21
Joined: 29 Oct 2022, 22:35

Re: Cannot access offset of type string on string

Post by forlx.62 »

ok, i downgraded to PHP 7.4.32 and now i have access to compnent phoca gallery.

I will try to upgrade phoca gallery to v4.5.2 in order to prepare migration to joomla 4
User avatar
forlx.62
Phoca Member
Phoca Member
Posts: 21
Joined: 29 Oct 2022, 22:35

Re: Cannot access offset of type string on string

Post by forlx.62 »

if i want to stay with joomla 3 for the moment, shall i keep phoca gallery 4.4.3 ?
User avatar
forlx.62
Phoca Member
Phoca Member
Posts: 21
Joined: 29 Oct 2022, 22:35

Re: Cannot access offset of type string on string

Post by forlx.62 »

All works now.

Steps to solve my issue !
* Downgrade PHP from 8.1.11 to 7.4.32
* Upgrade Phoca Gallery to 4.4.3 (no auto upgrade, i had to download zip from phoca website and install it manually in order to not lost my datas)
* at this step, i can access to the phoca galery component in joomla administration (under joomla 3)
* Upgrade PHP from 7.4.32 to 8.1.11
* at this step, i always have access to the phoca galery component in joomla administration (still under joomla 3)

i will try joomla 4 and phoca gallery 4.5.2 later on a local install in order to validate that my website will work

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

Re: Cannot access offset of type string on string

Post by Jan »

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