PHP Notice: Trying to access array offset on value of type null

General questions regarding the use of languages in Joomla! 4.x.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Locked
MooseMoney
Joomla! Intern
Joomla! Intern
Posts: 64
Joined: Fri Mar 05, 2010 8:15 pm

PHP Notice: Trying to access array offset on value of type null

Post by MooseMoney » Wed Jan 25, 2023 2:43 am

Our hosting company advised us of a PHP error notice;

PHP Notice: Trying to access array offset on value of type null in /home/xxxxx/public_html/libraries/src/Language/Language.php on line 1012

The code at line 1012;

Code: Select all

    return (bool) $this->metadata['rtl'];  


Our website uses Joomla v4.2.6 and PHP 8.1
The template came with 2 languages: English (en-GB) and Arabic.
The website is setup for English (en-GB).

How do I fix this error?
Last edited by toivo on Wed Jan 25, 2023 2:51 am, edited 1 time in total.
Reason: mod note: moved from 4.x Administration, retitled - please observe the forum rules about proper subject line!

MooseMoney
Joomla! Intern
Joomla! Intern
Posts: 64
Joined: Fri Mar 05, 2010 8:15 pm

Re: PHP Notice: Trying to access array offset on value of type null

Post by MooseMoney » Sat Jan 28, 2023 4:16 pm

Any suggestion or advice? ???
Please guys, I need help!

User avatar
Per Yngve Berg
Joomla! Master
Joomla! Master
Posts: 30814
Joined: Mon Oct 27, 2008 9:27 pm
Location: Romerike, Norway

Re: PHP Notice: Trying to access array offset on value of type null

Post by Per Yngve Berg » Sat Jan 28, 2023 4:30 pm

Looks like a php version in-compatability.

Have you updated the Language Packs?

Please use the FPA. See Red Frame above.

MooseMoney
Joomla! Intern
Joomla! Intern
Posts: 64
Joined: Fri Mar 05, 2010 8:15 pm

Re: PHP Notice: Trying to access array offset on value of type null

Post by MooseMoney » Sun Jan 29, 2023 12:54 am

#Per Yngve Berg - Thank you for your reply.

No, I have not updated any language packs.
Many month ago, I did disable the Arabic language.

There is some error which is slowing our website and creating large error logs.
Our hosting company have now deleted the error logs, disabled PHP 8.x and enabled PHP 7.4.33.
Although our website is now loading normal speed, this is not a lasting solution.

MooseMoney
Joomla! Intern
Joomla! Intern
Posts: 64
Joined: Fri Mar 05, 2010 8:15 pm

Re: PHP Notice: Trying to access array offset on value of type null

Post by MooseMoney » Sun Jan 29, 2023 1:07 am

Per Yngve Berg wrote:
Sat Jan 28, 2023 4:30 pm
...
Please use the FPA. See Red Frame above.
I followed the FPA instructions (https://forumpostassistant.github.io/docs/).
It is not working on our website - it is redirecting to our Home page.


Locked

Return to “Language - Joomla! 4.x”