[SOLVED] Undefined offset: 217 in libraries/joomla/access/access.php

More
7 years 7 months ago - 7 years 7 months ago #64101 by hervemlam
Hello,

I've a big problem at my main page , which is a category page. The following messages are displayed at each item:
Notice: Undefined offset: 217 in /var/www/japprecie/libraries/joomla/access/access.php on line 595
Notice: Trying to get property of non-object in /var/www/japprecie/libraries/joomla/access/access.php on line 595


Naturally I've opened access.php at line 595, it says this:
$collected[] = self::$assetPermissionsById[$extensionName][$id]->rules;

I didn't have that before. I think I have modified a parameter somewhere but I can't remember which one :(

Could you help me please?

Good night.
HervE

PHP 8.1.16
Joomla! 4.3.3
FLEXIcontent 4.1.5
Last edit: 7 years 7 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
7 years 7 months ago - 7 years 7 months ago #64102 by ggppdk
Hello

the Joomla code that caclulates access (ACL) has changed in J3.6.0+

Solutions:
- either set the error reporting to "Simple" in Joomla Global configuration
- or go and edit the appropriate category save it and also you may have to save its parent categories


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 7 years 7 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
7 years 7 months ago - 7 years 7 months ago #64103 by hervemlam
Found.

I just had an Upadate after installation > Initialize the permissions, to check again.
Why? I don't know. For I had done it already when I installed Flexi 3.1.0.
But, anyway... it's OK now.

HervE

PHP 8.1.16
Joomla! 4.3.3
FLEXIcontent 4.1.5
Last edit: 7 years 7 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
7 years 7 months ago #64104 by ggppdk
Hello

it is also recommended not to have error reporting ON in live sites,
- only when you get some issue, only then you should enable (temporarily) to get needed information


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...

Please Log in or Create an account to join the conversation.

More
7 years 7 months ago #64105 by hervemlam

ggppdk wrote: it is also recommended not to have error reporting ON in live sites,

Yes! Do you mean System Debug (in Joomla Configuration)? Or do you mean something else?

HervE

PHP 8.1.16
Joomla! 4.3.3
FLEXIcontent 4.1.5

Please Log in or Create an account to join the conversation.

More
7 years 7 months ago #64106 by ggppdk
Hello

Joomla system debug OPTION
- will display the joomla debug console
giving out considerable of site information
and slowing down your site a lot

it must be enable ONLY if you have problems temporarily

The error reporting OPTION is a different option, and does not slow down your site,
- but it might break some pages by printing harmless NOTICEs (your case), (bad for your visitors to see broken pages)
- in rare cases it may give out site information


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
The following user(s) said Thank You: hervemlam

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.294 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline