Forums

[resolved] Homepage loaded 3 times on the server (3 posts)

  1. boute
    Member
    Posted 4 months ago #

    I've notice that my index page is loaded 3 times on the server (but only once on my screen... see below why I'm sure of that).
    You can have a look at my index.php there: http://pastebin.com/3JJUhsvF

    Basically what I do in indexAI.php is set a couple of vars.
    But if, right at th beginning of my index.php, I do mail("myAddress@myDomain.com", "", ICL_LANGUAGE_CODE);, I do receive 3 emails...

    The default langauge of my site is french. But if I browse in english, the first email I get says 'en', and the next 2 say 'fr'. I know the fact that the language changes is a WPML problem, and I'm not posting for that here...
    But I'd really like to know why, on the server my page is loaded 3 times, and the result on the screen is what has been processed the first time (because it's in english).
    Here is the link where you can see the site being developped... If you click on "More" at the bottom of the page, you'll get some more content, but in french, as the language var has been changed from en to fr: http://espresso.double-espresso.com/en/

    Thanks for your help!

  2. esmi
    Theme Diva & Forum Moderator
    Posted 4 months ago #

    Have you tried:

    - deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).

    - switching to the Twenty Eleven theme to rule out any theme-specific problems.

    - resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.

  3. boute
    Member
    Posted 4 months ago #

    Found it! It was actually the fact that I did not have a 404.php page...
    I'll try to be clear... From my css file, 2 images were missing, and the call to the 404 page was redirected to the home page of the site, but not to the /en/ page. So it resets the language to fr...
    Hope it's clear!

    Matthieu

Reply

You must log in to post.

About this Topic