error after migrating site from test
Permalink
I am new to C5 and a little lost. I know it will be the right solution for us if I can ever get it to go live.
I am using C5.7. Right now I'm struggling with an issue. Searches for an answer keep taking me to old posts from earlier versions.of C5. I put my site together on a test domain. After migrating the site from the test domain, the pages are all blank. I was able to locate an error log containing the following:
I located the line in the StartingPointPackage but I was unable to determine the problem because I don't understand what the codes are
Here is the code in question?
[code]
public static function getClass($pkgHandle) {
if (is_dir(DIR_STARTING_POINT_PACKAGES . '/' . $pkgHandle)) {
$class = '\\Application\\StartingPointPackage\\' . camelcase($pkgHandle) . '\\Controller';
} else {
$class = '\\Concrete\\StartingPointPackage\\' . camelcase($pkgHandle) . '\\Controller';
}
$cl = new $class;
[/ code]
The last line is the text on line 426 - I included the entire section just in case it is needed.
I have no idea what I need to do to correct this. I compared the code from this file to the one from the test site. I couldn't find any differences. I'm not clear on where the commands are pointing in either file.
Suggestions for possible solutions will be greatly appreciated. I have not worked with PHP before and nothing I have found in the forums has helped to solve this problem.
Thanks,
Tina
I am using C5.7. Right now I'm struggling with an issue. Searches for an answer keep taking me to old posts from earlier versions.of C5. I put my site together on a test domain. After migrating the site from the test domain, the pages are all blank. I was able to locate an error log containing the following:
[14-Mar-2015 19:16:01 UTC] PHP Fatal error: Class '\Concrete\StartingPointPackage\\Controller' not found in /home/omschurch/public_html/concrete5.7.3.1/concrete/src/Package/StartingPointPackage.php on line 426
I located the line in the StartingPointPackage but I was unable to determine the problem because I don't understand what the codes are
Here is the code in question?
[code]
public static function getClass($pkgHandle) {
if (is_dir(DIR_STARTING_POINT_PACKAGES . '/' . $pkgHandle)) {
$class = '\\Application\\StartingPointPackage\\' . camelcase($pkgHandle) . '\\Controller';
} else {
$class = '\\Concrete\\StartingPointPackage\\' . camelcase($pkgHandle) . '\\Controller';
}
$cl = new $class;
[/ code]
The last line is the text on line 426 - I included the entire section just in case it is needed.
I have no idea what I need to do to correct this. I compared the code from this file to the one from the test site. I couldn't find any differences. I'm not clear on where the commands are pointing in either file.
Suggestions for possible solutions will be greatly appreciated. I have not worked with PHP before and nothing I have found in the forums has helped to solve this problem.
Thanks,
Tina
I moved everything, the cache was already off while I was working but I went in and deleted everything that was there just in case.
All the pages on the site are blank with no error messages. I was able to get to the dashboard when I posted this question but now it says the following:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@omschurch.org and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an rrorDocument to handle the request.
Here are the steps I followed with the exception of the pretty URLs. I did not have them on when I put the site together. I did turn them on but decided against using them until everything was working so I turned them right back off. They are from another post.
1) Turn off Pretty URLs
2) Turn off all c5 caching
3) Clear the c5 cache
4) Delete all files inside the file/cache so you have empty 'cache' folder.
5) From the host's cPanel->File Manager, select all your files in the root and choose 'Compress' from the File Manager's menu. If you have uploaded or created non-concrete5 files and folders then you need to decide which of these folders need to be moved to the new server.
6) Download the resulting zip file.
7) Using your host's phpMyAdmin functions, export your active concrete5 database (as defined in the site.php file) to your local computer.
On the new server...
1) Using the new host's phpMyAdmin, create a new, blank database. Write down the database name, user name and password you used to create this database.
2) In that new database, import the SQL file you exported from your old site.
3) Upload the zip file of your site to the root of your new server and use the cPanel's File Manager to 'Expand' the zip.
4) Open the config/site.php file and change the database information to match the info used to create the new database. Make sure you change the 'DB_SERVER' line to point to your new server's database location. Normally it's 'localhost' but it might be something completely different from your old server.
4) Rename the existing .htaccess file to '.htaccessOLD'
5) Create a new, blank .htaccess file.
6) Transfer any needed commands from the .htaccessOLD file over to your new .htaccess file but DON'T copy the Pretty URL stuff that concrete5 creates. There may be some domain-specific stuff from your old .htaccess file that you need to adjust for your new domain.
7) Visit your new site and reset the Pretty URLs
Thanks,
All the pages on the site are blank with no error messages. I was able to get to the dashboard when I posted this question but now it says the following:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, webmaster@omschurch.org and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. Additionally, a 404 Not Found error was encountered while trying to use an rrorDocument to handle the request.
Here are the steps I followed with the exception of the pretty URLs. I did not have them on when I put the site together. I did turn them on but decided against using them until everything was working so I turned them right back off. They are from another post.
1) Turn off Pretty URLs
2) Turn off all c5 caching
3) Clear the c5 cache
4) Delete all files inside the file/cache so you have empty 'cache' folder.
5) From the host's cPanel->File Manager, select all your files in the root and choose 'Compress' from the File Manager's menu. If you have uploaded or created non-concrete5 files and folders then you need to decide which of these folders need to be moved to the new server.
6) Download the resulting zip file.
7) Using your host's phpMyAdmin functions, export your active concrete5 database (as defined in the site.php file) to your local computer.
On the new server...
1) Using the new host's phpMyAdmin, create a new, blank database. Write down the database name, user name and password you used to create this database.
2) In that new database, import the SQL file you exported from your old site.
3) Upload the zip file of your site to the root of your new server and use the cPanel's File Manager to 'Expand' the zip.
4) Open the config/site.php file and change the database information to match the info used to create the new database. Make sure you change the 'DB_SERVER' line to point to your new server's database location. Normally it's 'localhost' but it might be something completely different from your old server.
4) Rename the existing .htaccess file to '.htaccessOLD'
5) Create a new, blank .htaccess file.
6) Transfer any needed commands from the .htaccessOLD file over to your new .htaccess file but DON'T copy the Pretty URL stuff that concrete5 creates. There may be some domain-specific stuff from your old .htaccess file that you need to adjust for your new domain.
7) Visit your new site and reset the Pretty URLs
Thanks,
Before you migrated the site, did you turn off all caching and clear the cache?
Can you get to any pages in the site (dashboard or anything?)