Page 1 of 1

Content Preview error

Posted: Fri Jan 28, 2005 3:30 pm
by Anonymous
I've just installed CMS MS for the first time on my test environment (WinXP/SP2, Apache 1.3.27, PHP 4.2.3, MySQL 4.0)

When I click on the Preview button of the Edit Content window, I get the following messages:
Warning: fopen("c:\apps\phpdev\www\cmsmadesimple/tmp/cache/cache\cmsD0.tmp", "r") - No such file or directory in c:\apps\phpdev\www\cmsmadesimple\lib\preview.functions.php on line 67

Warning: stat failed for c:\apps\phpdev\www\cmsmadesimple/tmp/cache/cache\cmsD0.tmp (errno=2 - No such file or directory) in c:\apps\phpdev\www\cmsmadesimple\lib\preview.functions.php on line 68

Warning: fread(): supplied argument is not a valid File-Handle resource in c:\apps\phpdev\www\cmsmadesimple\lib\preview.functions.php on line 68

Warning: fclose(): supplied argument is not a valid File-Handle resource in c:\apps\phpdev\www\cmsmadesimple\lib\preview.functions.php on line 69

Warning: unlink() failed (No such file or directory) in c:\apps\phpdev\www\cmsmadesimple\lib\preview.functions.php on line 70
I read on another thread this has to do with the preview path of the config.php file. However my path seems to be correct but I still get the problem. This is my config.php

Code: Select all

$config["dbms"] = "mysql";
$config["db_hostname"] = "localhost";
$config["db_username"] = "cms_user";
$config["db_password"] = "cmspass";
$config["db_name"] = "cms";
$config["db_prefix"] = "cms_";
$config["root_url"] = "http://localhost/cmsmadesimple";
$config["root_path"] = "c:\apps\phpdev\www\cmsmadesimple";
$config["query_var"] = "page";
$config["use_bb_code"] = false;
$config["use_smarty_php_tags"] = false;
$config["previews_path"] = "c:\apps\phpdev\www\cmsmadesimple/tmp/cache";
$config["uploads_path"] = "c:\apps\phpdev\www\cmsmadesimple/uploads";
$config["uploads_url"] = "http://localhost/cmsmadesimple/uploads";
$config["max_upload_size"] = 1000000;
$config["debug"] = false;
$config["assume_mod_rewrite"] = false;
$config["auto_alias_content"] = true;
$config["image_manipulation_prog"] = "GD";
$config["image_transform_lib_path"] = "/usr/bin/ImageMagick/";
$config["use_Indite"] = false;
$config["image_uploads_path"] = "c:\apps\phpdev\www\cmsmadesimple/uploads/images";
$config["image_uploads_url"] = "http://localhost/cmsmadesimple/uploads/images";
$config["default_encoding"] = "";
$config["disable_htmlarea_translation"] = false;
Suggestions anyone? :shock:

thanks,
Al

Content Preview error

Posted: Fri Jan 28, 2005 5:44 pm
by Greg
In my config.php on localhost set-up all the paths have a / not \

ie c:/apps/phpdev/www/cmsmadesimple
not c:\apps\phpdev\www\cmsmadesimple

Content Preview error

Posted: Fri Jan 28, 2005 7:54 pm
by Anonymous
Nope :?

Tried that and the other way around (\ instead of /), same result as before.

Al.

Content Preview error

Posted: Fri Jan 28, 2005 8:05 pm
by Greg
do you have the subdirectories cache, configs, templates, templates_c under the tmp directory?

Content Preview error

Posted: Mon Jan 31, 2005 5:00 pm
by Anonymous
Yes, they are all there.

btw, I think I haven't mentioned my CMS MS version is 0.8.2

A.

Solution

Posted: Thu Feb 03, 2005 9:47 am
by Anonymous
I've found the solution in this thread
http://forum.cmsmadesimple.org/viewtopic.php?t=181

I just replaced all the \ in the paths of the config.php for \\ . It's working fine now. :D

Cheers,
Al