warning: main...

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
tai1109
Posts: 2
Joined: Tue 25. Jan 2005, 06:17

warning: main...

Post by tai1109 »

I have been in the process of installing this for a few days and I am being plagued with these warning messages whenever I try to do anything. It says that it cannot find these files, and I have double-checked that they exist and I have set every file/directory permissions to 777 temporarily. PLEASE I would be forever grateful for any help.

The error messages look something like this and are usually different file names, depending on what I am trying to do (for example, this one occurred after I tried to create a new article):
Warning: main(/mnt/web_i/d35/s04/b01e3c39/web-2005/content//include/inc_front/content.article.inc.php): failed to open stream: No such file or directory in /mnt/web_i/d35/s04/b01e3c39/www/web-2005/content/include/inc_front/content.func.inc.php on line 196
Here is my config.inc.php file:

Code: Select all

// database values
$phpwcms["db_host"]           = "MYSQLHOST";
$phpwcms["db_user"]           = "username"; //the correct username is here
$phpwcms["db_pass"]           = "*****"; //masked for security
$phpwcms["db_table"]          = "table"; //the correct table is here
$phpwcms["db_prepend"]        = "";
$phpwcms["db_pers"]           = 1;

// site values
$phpwcms["site"]              = "http://www.DOMAIN.com/"; //company-confidential, but the right domain is there
$phpwcms["admin_email"]       = "webmaster@DOMAIN.com";

// paths
$phpwcms["root"]         = "web-2005/content"; 
$phpwcms["file_path"]         = "phpwcms_filestorage"; 
$phpwcms["file_tmp"]          = "phpwcms_tmp";
$phpwcms["templates"]         = "phpwcms_template"; 
$phpwcms["dir_thlist"]        = "thumb_list"; 
$phpwcms["dir_preview"]       = "thumb_preview"; 
$phpwcms["content_path"]      = "content"; 
$phpwcms["cimage_path"]       = "images";  
$phpwcms["ftp_path"]          = "phpwcms_ftp"; 

// content values
$phpwcms["file_maxsize"]      = 2097152; 
$phpwcms["content_width"]     = 538; 
$phpwcms["img_list_width"]    = 100;
$phpwcms["img_list_height"]   = 75; 
$phpwcms["img_prev_width"]    = 538; 
$phpwcms["img_prev_height"]   = 400; 
$phpwcms["max_time"]          = 1800; 

// other stuff
$phpwcms["compress_page"]     = 0; 
$phpwcms["imagick"]           = 0; 
$phpwcms["imagick_path"]      = ""; 
$phpwcms["use_gd2"]           = 1;
$phpwcms["rewrite_url"]       = 0;  
$phpwcms["wysiwyg_editor"]    = 1; 
$phpwcms["phpmyadmin"]        = 1; 
$phpwcms["default_lang"]      = "en";
$phpwcms["charset"]           = "iso-8859-1";
$phpwcms["allow_remote_URL"]  = 0;  
$phpwcms["gt_mod"]            = 0; 
$phpwcms["jpg_quality"]       = 75; 
$phpwcms["sharpen_level"]     = 1;  
$phpwcms["allow_ext_init"]    = 1;  
$phpwcms["allow_ext_render"]  = 1;

// dynamic ssl encryption engine
$phpwcms["site_ssl_mode"]     = '0';
$phpwcms["site_ssl_url"]      = ''; 
$phpwcms["site_ssl_port"]     = '443';
Pappnase

Post by Pappnase »

hello

change this

Code: Select all

$phpwcms["root"]         = "web-2005/content"; 
to

Code: Select all

$phpwcms["root"]         = ""; 
tai1109
Posts: 2
Joined: Tue 25. Jan 2005, 06:17

problems continue

Post by tai1109 »

Hi pappnase, thanks for your help. Unfortunately, when I changed the root directory to:

Code: Select all

$phpwcms["root"]         = ""; 
the entire site stopped working alltogether giving me 404 errors all the time. I think its because I was trying to put the phpWCMS in the web-2005/content directory instead of the root directory of my site?

Again, thanks for your help and any additional guidance would be most appreciated.
Ozone
Posts: 12
Joined: Fri 21. Jan 2005, 20:43

Post by Ozone »

Just my two cents, as I'm just beginning with phpwcms, but maybe you need to alter the last part of the conf.inc.php file?

Code: Select all

// Try to check and uncomment the DOCUMENT_ROOT if you have problems 
// often neccessary on IIS or default MacOS X webserver settings
// Do not use backslash "\" on Windows - always replace "\" by "/"
//$_SERVER['DOCUMENT_ROOT']     = '/full/path/to/webroot/folder';
Also, could it have something to do with the path that is returned?
Warning: main(/mnt/web_i/d35/s04/b01e3c39/web-2005/content//include/inc_front/content.article.inc.php): failed to...
I see a double '/' after ...web-2005/content...

Oz
Karla
Posts: 223
Joined: Tue 26. Oct 2004, 11:56

Re: warning: main...

Post by Karla »

tai1109 wrote:
Warning: main(/mnt/web_i/d35/s04/b01e3c39/web-2005/content//include/inc_front/content.article.inc.php): failed to open stream: No such file or directory in /mnt/web_i/d35/s04/b01e3c39/www/web-2005/content/include/inc_front/content.func.inc.php on line 196
Yes, ~probably~ should be this:

Code: Select all

// site values
$phpwcms["site"]              = "http://www.DOMAIN.com/"; //company-confidential

// paths 
$phpwcms["root"]         = "web-2005/content";

// Try to check and uncomment the DOCUMENT_ROOT if you have problems 
// often neccessary on IIS or default MacOS X webserver settings.
// Do not use backslash "" on Windows - always replace "" by "/" 
$_SERVER['DOCUMENT_ROOT']     = '/mnt/web_i/d35/s04/b01e3c39/www';
Post Reply