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.

Server Migration - Can't save templates within CP - PHP Errors

March 04, 2011 11:35am

Subscribe [2]
  • #1 / Mar 04, 2011 11:35am

    bmschaaf

    171 posts

    Hello,

    Yesterday I migrated a client’s site from our server (Mediatemple dv) to a Mediatemple (gs) server.

    The site appears to be functioning pretty well (http://s119012.gridserver.com/) on the new server, however when attempting to save an edit to a template (via the CP) I receive a series of PHP errors.

    A PHP Error was encountered
    
    Severity: Warning
    
    Message: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/var/www/vhosts/mysite.com/subdomains/cz/httpdocs/.htaccess) is not within the allowed path(s): (/nfs:/tmp:/usr/local:/etc/apache2/gs-bin)
    
    Filename: helpers/file_helper.php
    
    Line Number: 43

    The path is not correct. I am not sure where it is pulling that value from. That is the old path our on (dv) server.

    A PHP Error was encountered
    
    Severity: Warning
    
    Message: Cannot modify header information - headers already sent by (output started at /nfs/c08/h01/mnt/###/domains/mysite.com/html/mysystemfolder/codeigniter/system/core/Exceptions.php:170)
    
    Filename: libraries/Functions.php
    
    Line Number: 749
    A PHP Error was encountered
    
    Severity: Warning
    
    Message: Cannot modify header information - headers already sent by (output started at /nfs/c08/h01/mnt/###/domains/mysite.com/html/mysystemfolder/codeigniter/system/core/Exceptions.php:170)
    
    Filename: libraries/Functions.php
    
    Line Number: 749
    A PHP Error was encountered
    
    Severity: Warning
    
    Message: Cannot modify header information - headers already sent by (output started at /nfs/c08/h01/mnt/###/domains/mysite.com/html/mysystemfolder/codeigniter/system/core/Exceptions.php:170)
    
    Filename: libraries/Functions.php
    
    Line Number: 387

    I replaced my Mediatemple number with ‘###’, my renamed system folder with “mysystemfolder”, and the domain with “mysite.com”.

    We are running EE 2.1.3, build 20101220.

  • #2 / Mar 04, 2011 11:50am

    bmschaaf

    171 posts

    UPDATE:

    I figured it out. It was NSM .htaccess Generator holding the wrong value. Once I updated that value to the correct directory all seems to be working.

  • #3 / Mar 04, 2011 6:01pm

    Sue Crocker

    26054 posts

    Glad you were able to figure out what the problem was. Don’t hesitate to post again as needed.

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

ExpressionEngine News!

#eecms, #events, #releases