Re: [vyskocil] update 2.13 to 2.17 moved to new server viewing issues
Hi,
If you've moved the site to a new server then there shouldn't be anyway that your files can access the code on the old server.
The most likely reason that some of the pages are still loading but others arn't is because of this line that loads the viewer functions:
$dirsToCheck = array("/path/to/site/','','../','../../','../../../');
foreach ($dirsToCheck as $dir) { if (@include_once("$dir$libraryPath")) { break; }}
if (!function_exists('getRecords')) { die("Couldn't load viewer library, check filepath in sourcecode."); }
So if CMS Builder can't find the viewer functions in the provided path, it tries going up 3 directories to see if it can find the viewer functions. I think that this method is working for some of your php files but not all of them.
If you go to the code generator and generate any type of page, then replace the line that it generates above with the same line on your PHP site pages, this should fix the issue.
I'm not sure what's causing the dreamweaver issue. Are you editing the files in dreamweaver on the site directly, or are these local copies that you then upload?
Thanks!
Greg
Greg Thomas
PHP Programmer - interactivetools.com