× Here you can get community support related to ReDJ.

error on 404 page

  • ppeer
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 9 months ago - 11 years 9 months ago #163 by ppeer
error on 404 page was created by ppeer
Hi Luigi,

On my 404 page (using ReDJ custom 404 page) eg huisx.nl/hahaha I receive the following error:

Fatal error: Call to a member function merge() on a non-object in /home/users/huityftp/huisx.nl/components/com_content/views/article/view.html.php on line 68


any idea on this one?

regards
Peter
Last edit: 11 years 9 months ago by ppeer. Reason: better info

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

More
11 years 9 months ago #164 by admin
Replied by admin on topic Re: error on 404 page
Hi Peter,
how is your custom error page configured? Do you call an article with a macro?

Please, advise.

Luigi

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

  • ppeer
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 9 months ago #165 by ppeer
Replied by ppeer on topic Re: error on 404 page
No I don't think so. My 404 code is:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="nl-NL" lang="nl-NL" dir="ltr">
<head>
 <base href="http://{siteurl}">
  <title>{sitename} - Error 404: {errormessage}</title>
  <link rel="stylesheet" href="http://{siteurl}/templates/system/css/error.css" type="text/css" />
  
</head>
<body>
  <div align="center">
    <div id="outline">
    <div id="errorboxoutline">
      <div id="errorboxheader">Error 404 - webpagina niet gevonden</div>

      <div id="errorboxbody">
      <p><strong>De opgevraagde pagina kan niet worden gevonden:</strong></p>
        <ol>
          <li><strong>de link is verlopen of bestaat niet meer</strong></li>
          <li>,de zoekmachine heeft een <strong>verlopen indexatie van deze pagina</strong></li>
          <li>,<strong>het adres is niet goed ingegeven</strong></li>

          <li>,u heeft <strong>geen toegang</strong> tot deze pagina</li>
          <li>,de opgevraagde bron werd niet gevonden</li>
          <li>,er heeft zich een fout voorgedaan bij het verwerken van uw aanvraag</li>
        </ol>
      <p><strong>Probeert u de volgende pagina's:</strong></p>

      <p>
        <ul>
          <li><a href="http://huisx.nl/index.php" title="Ga naar de Homepage">Home</a></li>
        </ul>
      </p>
<p>
<script type="text/javascript">
  var GOOG_FIXURL_LANG = 'nl';
  var GOOG_FIXURL_SITE = 'http://huisx.nl'
</script>
<script type="text/javascript"
  src="http://linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js">
</script>
</p>

      <p>Indien de moeilijkheden zich blijven voordoen, neemt u dan <a href="mailto:{sitemail}">contact op met</a> de systeembeheerder van HuisX</p>

<div id="techinfo">
      <p>{errormessage}</p>
</div>
      

      </div>
    </div>
    </div>
  </div>

</body>
</html>

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

More
11 years 9 months ago - 11 years 9 months ago #167 by admin
Replied by admin on topic Re: error on 404 page
Ok,
it seems there's a little problem with custom error process applied to Joomla > 1.5. So the fix will be released with next version. Meanwhile, you can patch the code by yourself. Open redj.php plugin file amd find this piece of code (around line 349):
// Set the custom body
        JResponse::setBody($custombody);
        echo JResponse::toString();
        @ob_flush();

And just add an exit call:
// Set the custom body
        JResponse::setBody($custombody);
        echo JResponse::toString();
        @ob_flush();
        exit();

This should solve. Let me know if you need support.

Kind regards,
Luigi
Last edit: 11 years 9 months ago by admin.
The following user(s) said Thank You: ppeer

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

  • ppeer
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
11 years 9 months ago #169 by ppeer
Replied by ppeer on topic Re: error on 404 page
works!

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

More
11 years 9 months ago #170 by admin
Replied by admin on topic Re: error on 404 page
Great... thanks for reporting the issue.

Kind regards,
Luigi

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

Time to create page: 0.198 seconds