ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

After server migration with PHP being served as CGI...

March 07, 2012 10:40am

Subscribe [2]
  • #1 / Mar 07, 2012 10:40am

    MarketingMatters

    28 posts

    I had EE 2.3.1 and MSM for a client working beautifully on a site.

    We then proceeded to move to a different dedicated server with a new build:

    PHP Version 5.3.3 using MySQL 5.1.61
    PHP as CGI

    We have MSM installed.

    Everything was working. Configs set correctly. etc.. etc..
    On site 1 - everything is working
    On site 2 - None of our templates with complex queries work. After some troubleshooting - we got some very basic queries to work

    Any ideas on how to trouble shoot this? Our error reporting is spotty and I see nothing as abnormal in the logs. I have template debugging on, etc and nothing.


    Errors we keep seeing creep up:
    A PHP Error was encountered
    Severity: Notice
    Message: Undefined index: index
    Filename: libraries/Menu.php
    Line Number: 1051
    A PHP Error was encountered
    Severity: Warning
    Message: Cannot modify header information - headers already sent by (output started at /var/www/sites/nurserylandscapeexpo.org/root/user/html/exposys/codeigniter/system/core/Exceptions.php:170)
    Filename: core/Common.php
    Line Number: 405

  • #2 / Mar 08, 2012 12:38pm

    Shane Eckert

    7174 posts

    Hello ,

    I am sorry to hear you are running into this problem.

    PHP as CGI is known to be a bit of a bear. Can you try these tips here and see if any of them help?

    Once you try these, we can go from there.

    Thank you,

  • #3 / Mar 08, 2012 3:02pm

    MarketingMatters

    28 posts

    I’ve already tried the shebangs and that was a no-go.
    Headers are set to “NO”

    I’ll check the php files. <—I’ll address this

    One thing we have noticed:

    Site_1 - everything is working. Perfectly.

    Site_2 (child site, different URL) - is not working… but after much turmoil we’ve seen partial things working…
    Templates are working. Pathing and extensions seem to be working
    Queries are not. Simple ones are… If that makes sense…


    BEFORE this migration - Same EE system, different Server PHP and DB build… no php errors or db errors AND the entire build worked on both the root site and the child site. AND

    So while we were whittling down our options, I have:
    http://test.landscapetexas.org/careers <—simple query working and no embedded template
    http://test.landscapetexas.org/gardening_with_kids <—- complex and broken and no error in any output - with embedded templates
    http://test.landscapetexas.org/s/ads_display <—complex with embedded templates and not working

    I cannot address the PHP files now, but I should have that addressed sometime in the next 24 hours. I am aiming to have this totally resolved by next week at the very very latest.

    Stay tuned.

  • #4 / Mar 09, 2012 3:51pm

    Dan Decker

    7338 posts

    Hi MarketingMatters,
    Since you started off with a move, make sure you have checked everything for “Moving ExpressionEngine to Another Server”. Make sure everything is accurate in each site’s index.php and admin.php files as well.

    Queries are not. Simple ones are… If that makes sense…

    Can you post some example code of what you are doing with these? That way we can make sure to have the big picture.

    If you come up with anymore information along the way, please let us know!

    Cheers,

  • #5 / Mar 09, 2012 3:59pm

    MarketingMatters

    28 posts

    I haven’t had time to post yet. We discovered the root of the bug about an hour ago. (literally an hour ago)

    It did not have anything to do with EE, but with a custom extension we are building bugging out and not triggering an error in the child site. ...We found a slew of them in the parent when isolating it.

    Thanks for staying on top of this. I was pulling my hair out and was nearly bald. Just looked at everything far too long.

  • #6 / Mar 11, 2012 12:42am

    Dan Decker

    7338 posts

    Hi MarketingMatters,

    Thanks for staying on top of this. I was pulling my hair out and was nearly bald. Just looked at everything far too long.

    No worries! We are here to help. I can totally empathize with looking at the same thing too long!

    It sounds like you are well on your way tracking down bugs, but is there anything else we can assist you with?

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases