Hi
I have a test Modx site on my Windows XP SP3 box and I decided to copy it over to my Linux (Slackware 12.2) set up to test the scenario where a local site will be moved to a remote Linux Server. The database was exported from Windows and imported into Linux using phpMyAdmin and the entire modx installation was zipped up and unpacked in the Linux htdocs directory.
However browsing to the site ((http://localhost/modx/) produced the following errors:
« MODx Parse Error »
MODx encountered the following error while attempting to parse the requested resource:
« PHP Parse Error »
PHP error debug
Error: include(/var/www/htdocs/modx/assets/snippets/ajaxSearch/includes/snippet.ajaxSearch.inc.php) [function.include]: failed to open stream: No such file or directory
Error type/ Nr.: Warning - 2
File: /var/www/htdocs/modx/manager/includes/document.parser.class.inc.php(769) : eval()'d code
Line: 70
Parser timing
MySQL: 0.0007 s (0 Requests)
PHP: 0.0462 s
Total: 0.0469 s
On the other hand the manager section (http://localhost/modx/manager) works fine.
I have checked my URL and paths in Tools > Configuration:
"Interface & Features" and "File Manager", and I only had to update the "File Manager Path".
All other values were correct.
I searched through the forums for solutions and suggestions and tried a few. This included
1. hardcoding the the following values in the confing.inc.php file
$base_url=’http://localhost/modx/’; (also tried "/" and "/modx")
$base_path=’/var/www/htdocs/’;
$site_url=’http://localhost/modx/’;
2. Clearing browser cache and cookies
However this only resuled in a blank home page and the manager page only displayed "Could not load DBAPI class."
Can anyone point out what the problem is and provide possible solutions? Re-installation using the "upgrade" option may solve the problem but I would like to avoid this if possible.
Regards