Content Preview error

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Anonymous

Content Preview error

Post 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
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

Content Preview error

Post 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
Greg
Anonymous

Content Preview error

Post by Anonymous »

Nope :?

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

Al.
Greg
Power Poster
Power Poster
Posts: 598
Joined: Sun Sep 26, 2004 6:15 pm

Content Preview error

Post by Greg »

do you have the subdirectories cache, configs, templates, templates_c under the tmp directory?
Greg
Anonymous

Content Preview error

Post by Anonymous »

Yes, they are all there.

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

A.
Anonymous

Solution

Post 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
Locked

Return to “CMSMS Core”