Advertisement

can't turn off error reporting

Need help installing Joomla! 4.x? For all Joomla! 4.x installation issues please use this forum.

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
Post Reply
4EST
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Tue Apr 03, 2012 8:36 am

can't turn off error reporting

Post by 4EST » Wed Feb 05, 2025 9:20 am

I upgraded from J3 to J4
Now I can NOT disable error reporting
https://2025.masini-electrice.ro/index. ... -incarcare
I get a lot of deprecated warning

I set error reporting to NONE. Also Virtuemart PHP Developer mode - none

I tried to disable all plugins and extensions except the joomla ones and the template. Still the warnings show up

What else should I try?

Advertisement
User avatar
AMurray
Joomla! Master
Joomla! Master
Posts: 10554
Joined: Sat Feb 13, 2010 7:35 am
Location: Australia

Re: can't turn off error reporting

Post by AMurray » Wed Feb 05, 2025 9:30 am

I think there's two settings one is "error_reporting", the other is "display_errors". One or both of these might have to be set from your web hosting account, not from Joomla global configuration. See if that makes the difference. Also clearing the browser and joomla caches may also help.
Regards - A Murray
Global Support Moderator

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

Re: can't turn off error reporting

Post by Per Yngve Berg » Wed Feb 05, 2025 10:40 am

What version of PHP are you running?
You can lower it by One.

4EST
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Tue Apr 03, 2012 8:36 am

Re: can't turn off error reporting

Post by 4EST » Wed Feb 05, 2025 11:39 am

I cleared browser cache and joomla cache. T
I can run any PHP version
With 8.1 I get warnings only from joomla core, with 8.3 also from a plugin
J4 has minimum req 8.1 - but then why are they deprecated warnings from core? Wasn't J4 developed for PHP 8.1?

@AMurray thanks, I am investigating the display_errors from the hosting account, haven't found it yet (not php.ini)

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

Re: can't turn off error reporting

Post by Per Yngve Berg » Wed Feb 05, 2025 1:05 pm

Enable Debug and set Error Reporting to Maximum in Global Configuration.

I see an operation is attempted on a NULL Object. That Object may be initialized with error in an extension and passed on to the Core.

Examine the Stack Trace to find out where the Error occurred.

4EST
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Tue Apr 03, 2012 8:36 am

Re: can't turn off error reporting

Post by 4EST » Wed Feb 05, 2025 1:24 pm

ok, I did.
However there is another strange thing with debug:
in PHP 8.2 if I enable debug, all errors go away
in PHP 8.3 I still see acymailing errors (I don't care about them, I will update acymailing later).
But no stack trace is visible. Should it be visible on every page or where?

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

Re: can't turn off error reporting

Post by Per Yngve Berg » Wed Feb 05, 2025 2:20 pm

A Stack Trace will only show when a fatle Error occur.

4EST
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Tue Apr 03, 2012 8:36 am

Re: can't turn off error reporting

Post by 4EST » Wed Feb 05, 2025 2:36 pm

oh, ok
so where did you see the fatal error?

gws
Joomla! Champion
Joomla! Champion
Posts: 6604
Joined: Tue Aug 23, 2005 1:56 pm
Location: South coast, UK
Contact:

Re: can't turn off error reporting

Post by gws » Wed Feb 05, 2025 3:22 pm

@4est , read Per's answer.....

4EST
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Tue Apr 03, 2012 8:36 am

Re: can't turn off error reporting

Post by 4EST » Wed Feb 05, 2025 3:44 pm

I am reading it, but probably don't understand completely :)

"I see an operation is attempted on a NULL Object" - where/what is that and what do I do?

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

Re: can't turn off error reporting

Post by Per Yngve Berg » Wed Feb 05, 2025 10:08 pm

Deprecated: Creation of dynamic property plgSystemRegacymailing::$components is deprecated in /home3/masinielectrice/2025.masini-electrice.ro/plugins/system/regacymailing/regacymailing.php on line 156

All issues is related to Acymailing.

4EST
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Tue Apr 03, 2012 8:36 am

Re: can't turn off error reporting

Post by 4EST » Thu Feb 06, 2025 7:18 am

ok, I disabled all acymailing, as I said - it's irrelevant
I also disabled debug mode. With debug mode off, I see all these warnings:

Code: Select all

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home3/masinielectrice/2025.masini-electrice.ro/libraries/vendor/joomla/uri/src/Uri.php on line 79

Deprecated: parse_str(): Passing null to parameter #1 ($string) of type string is deprecated in /home3/masinielectrice/2025.masini-electrice.ro/libraries/vendor/joomla/uri/src/Uri.php on line 84

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home3/masinielectrice/2025.masini-electrice.ro/libraries/vendor/joomla/uri/src/Uri.php on line 79

Deprecated: parse_str(): Passing null to parameter #1 ($string) of type string is deprecated in /home3/masinielectrice/2025.masini-electrice.ro/libraries/vendor/joomla/uri/src/Uri.php on line 84

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home3/masinielectrice/2025.masini-electrice.ro/libraries/vendor/joomla/uri/src/Uri.php on line 79

Deprecated: parse_str(): Passing null to parameter #1 ($string) of type string is deprecated in /home3/masinielectrice/2025.masini-electrice.ro/libraries/vendor/joomla/uri/src/Uri.php on line 84

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home3/masinielectrice/2025.masini-electrice.ro/libraries/vendor/joomla/uri/src/Uri.php on line 79

Deprecated: parse_str(): Passing null to parameter #1 ($string) of type string is deprecated in /home3/masinielectrice/2025.masini-electrice.ro/libraries/vendor/joomla/uri/src/Uri.php on line 84

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /home3/masinielectrice/2025.masini-electrice.ro/libraries/vendor/joomla/uri/src/Uri.php on line 79

Deprecated: parse_str(): Passing null to parameter #1 ($string) of type string is deprecated in /home3/masinielectrice/2025.masini-electrice.ro/libraries/vendor/joomla/uri/src/Uri.php on line 84

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

Re: can't turn off error reporting

Post by Per Yngve Berg » Thu Feb 06, 2025 8:21 am

I suggest that you run php 8.0 intill all your extensions have been updated.

Php 8.1 is minimum for J5 only.

4EST
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Tue Apr 03, 2012 8:36 am

Re: can't turn off error reporting

Post by 4EST » Thu Feb 06, 2025 10:42 am

ok, thank you
in the meantime I managed to turn off errors from the server side

Advertisement

Post Reply

Return to “Installation Joomla! 4.x”