Home Forum
2017-11-18
Menu principale
Prodotti
Giochi a premi
Accedi ai servizi
Newsletter
Ricezione
Benvenuto, Ospite
Nome Utente Password: Ricordami

debug-like output under custom 404 page
(1 Online) (1) Ospite
  • Pagina:
  • 1

ARGOMENTO: debug-like output under custom 404 page

debug-like output under custom 404 page 5 Anni, 9 Mesi fa #3037

  • drago
  • Offline
  • Fresh Boarder
  • Messaggi: 1
Hi.
I've successfully used your component on a Joomla 1.5 site, but upon migration to Joomla 2.5 (freshly installed the 1.6 ReDJ component) a problem occured. I set a custom 404 error page and it renders OK, but below it a debug-like message is appended, something like
jos-Error: The item does not exist

JSite -> dispatch() @ /h2/home/parvisai/public_html/1001zadachi25/index.php:42
JComponentHelper :: renderComponent() @ /h2/home/parvisai/public_html/1001zadachi25/includes/application.php:187
JComponentHelper :: executeComponent() @ /h2/home/parvisai/public_html/1001zadachi25/libraries/joomla/application/component/helper.php:357
require_once() @ /h2/home/parvisai/public_html/1001zadachi25/libraries/joomla/application/component/helper.php:388
JController -> execute() @ /h2/home/parvisai/public_html/1001zadachi25/components/com_content/content.php:18

and so on.
How can I switch this output off? Any help will be appreciated.

Re: debug-like output under custom 404 page 5 Anni, 9 Mesi fa #3040

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Hi,
could you please send me your custom error code? You can use my email info(at)sistemistica.it.

I need to understand where is the problem to fix it (maybe a macro).

Thanks,
Luigi

Re: debug-like output under custom 404 page 5 Anni, 9 Mesi fa #3069

I'm having a similar issue but it's not "debug" code but rather a blank page and generic error msg is inserted AFTER the custom 404 message. Here's my custom code:

<div style="width: 200px; margin-left: auto; margin-right: auto;">Error 404 - {errormessage}
<p><strong>Please try the </strong>
<a href="http://{siteurl}/index.php" title="Home Page">Home Page</a> or
<a href="mailto:{sitemail}">contact</a> the System Administrator.</p>
</div>

Visit this page to get a 404 error and see the output:

atomvoyages.com/index.htm

Any ideas on what I did to my setup to cause this?
Ultima modifica: 5 Anni, 9 Mesi fa Da vancouver25.

Re: debug-like output under custom 404 page 5 Anni, 9 Mesi fa #3072

  • admin
  • Offline
  • Administrator
  • Messaggi: 1603
Yes,
is the same problem, related to a changes in the way Joomla manages the error handling. It will be solved definitively in the next version. Meanwhile, you can fix the problem adding a line of code to \plugins\system\redj\redj.php file. Find this piece of code inside customError function:

        // Set the custom body
JResponse::setBody($custombody);
echo JResponse::toString();
@ob_flush();


And add a line as follow:

        // Set the custom body
JResponse::setBody($custombody);
echo JResponse::toString();
@ob_flush();
$app->close(0);


So, just added $app->close(0); after flush.

Let me know,
Luigi
Ultima modifica: 5 Anni, 9 Mesi fa Da admin.
  • Pagina:
  • 1
Moderatori: admin
Tempo generazione pagina: 0.32 secondi
News
Cerca con Google
Chi è online
 59 visitatori online
Sponsor

Slotmachineaamsonline.com è una guida alle migliori slot machine online legali in Italia. Sul sito trovi un elenco sempre aggiornato dei casino online con Slot machine e bonus slot, le ultime novità dal mondo delle slot online e le migliori strategie per vincere. Inoltre, è disponibile una sezione dedicata alle slot machine da BAR che finalmente sono disponibili nella versione online.