Disable display a fatal error has occurred...

General questions about CMSimple
Post Reply
doczimut
Posts: 126
Joined: Thu Dec 25, 2008 1:10 pm
Location: Normandy (France)

Disable display a fatal error has occurred...

Post by doczimut » Mon Jan 16, 2023 7:48 am

Hello
I now have an alert message on a few sites: "A fatal error has occurred. Enable Debug Mode".
I haven't changed anything (no error locally for the same site in php 7.4). So while waiting for a more in-depth search, how can this alert no longer appear? Thanks.

olape
Posts: 3052
Joined: Fri Mar 13, 2015 8:47 am
Contact:

Re: Disable display a fatal error has occurred...

Post by olape » Mon Jan 16, 2023 8:19 am

Have you activated the debug mode?
Gruß Olaf, Plugins for CMSimple_XH

Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.

doczimut
Posts: 126
Joined: Thu Dec 25, 2008 1:10 pm
Location: Normandy (France)

Re: Disable display a fatal error has occurred...

Post by doczimut » Mon Jan 16, 2023 2:10 pm

I had touched something, not on the sites, but the version of the server, PHP from 7.4 to 8.2. In 8.2, a problem is then present and fixed with the error messages displayed (debug mode).
I had in the template <?php echo onepage_toplink(TOP); ?>
The error disappears with (without the TOP) <?php echo onepage_toplink(); ?>
I don't know why, I added this top, non-existent in the original template (op-goaway).

cmb
Posts: 14227
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Disable display a fatal error has occurred...

Post by cmb » Mon Jan 16, 2023 4:01 pm

doczimut wrote:
Mon Jan 16, 2023 2:10 pm
I had in the template <?php echo onepage_toplink(TOP); ?>
That should be

Code: Select all

<?php echo onepage_toplink('TOP');?>
(note the single quotation marks)
Christoph M. Becker – Plugins for CMSimple_XH

doczimut
Posts: 126
Joined: Thu Dec 25, 2008 1:10 pm
Location: Normandy (France)

Re: Disable display a fatal error has occurred...

Post by doczimut » Mon Jan 16, 2023 4:45 pm

Yes, that's fine, TOP enclosed in single quotes.
Thanks.

talhapartners
Posts: 3
Joined: Tue Aug 15, 2023 9:34 am

Re: Disable display a fatal error has occurred...

Post by talhapartners » Thu Dec 07, 2023 9:00 pm

I've had this error for quite a long time, and it hasn't been solved yet. How I can solve this error I'm running a website (https:// usapickleballrules.org) that needs to be fixed as soon as possible.
Last edited by talhapartners on Fri Dec 08, 2023 7:38 pm, edited 1 time in total.

olape
Posts: 3052
Joined: Fri Mar 13, 2015 8:47 am
Contact:

Re: Disable display a fatal error has occurred...

Post by olape » Fri Dec 08, 2023 6:53 am

talhapartners wrote:
Thu Dec 07, 2023 9:00 pm
I've had this error for quite a long time, and it hasn't been solved yet. How I can solve this error I'm running a website that needs to be fixed as soon as possible.
A little bit more information is needed.
- Debug-Mode -> error-message?
- url?
- PHP-version?
- XH-version?
- template?
- plugins?
- own customizations to XH, template, plugins?
Gruß Olaf, Plugins for CMSimple_XH

Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.

Post Reply