Backend: Warning: main(): Failed opening

Please post all install related problems here. Visit this forum first for troubleshooting.
Post Reply
User avatar
lady_witchcraft
Posts: 94
Joined: Sun 14. Nov 2004, 19:19
Location: Austria
Contact:

Backend: Warning: main(): Failed opening

Post by lady_witchcraft »

an unknown error occurs in the backend at the file-list - everything works finde, but i have no clue how to get this error warning deleted ... any ideas?!

the warning text means:
Warning: main(/is/htdocs/######/www.mydomain.org/subfolder//include/inc ... st.inc.php): failed to open stream: No such file or directory in /is/htdocs/######/www.mydomain.org/subfolder/include/inc_ ... ns.inc.php on line 71

Warning: main(): Failed opening '/is/htdocs/######/www.mydomain.org/subfolder//include/inc ... st.inc.php' for inclusion (include_path='.:/usr/share/pear') in /is/htdocs/######/www.mydomain.org/subfolder/include/inc_ ... ns.inc.php on line 71
this is a phpwcms installation runnig in a subfolder of my domain - as i wrote before, everything workes finde and i really don*t know what causes this error warning!!! i hade a look at the files.private.additions.inc.php but the line 71 shows exactly the same code like my other phpwcms installations...
include_once (PHPWCMS_ROOT."/include/inc_lib/files.private-filelist.inc.php");
and i also checked my config-file, but the root directory is defined like in my other phpwcms installations (where no errors or warnings occure...) and i wonder what the warning stands for 'cause no function gets an error and everything works... any ideas guys?

please support me :oops: thx a lot in advance :D
... it's not bad luck, it's a bug ...
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hi,

have al look into your conf.inc.php

$phpwcms['root'] = 'subfolder';

The better way for develop and testing is an sub.domain.

Code: Select all

$phpwcms["site"]              = "http://".$_SERVER['SERVER_NAME']."/"; 
$phpwcms["admin_email"]       = "admin@example.tld";

// paths
$phpwcms["DOC_ROOT"]          = $_SERVER['DOCUMENT_ROOT'];
$phpwcms["root"]        		= ""; 


regards Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
lady_witchcraft
Posts: 94
Joined: Sun 14. Nov 2004, 19:19
Location: Austria
Contact:

Post by lady_witchcraft »

hi flip-flop

doesn't work either :cry:

Code: Select all

$phpwcms['site']       = 'http://subdomain.mydomain.org/';
$phpwcms['admin_email']   = 'redaktion@mydomain.org';

// paths
$phpwcms['DOC_ROOT']     = $_SERVER['DOCUMENT_ROOT'];
$phpwcms['root']         	     = '';         //default: ''
thats my config-file... and the other 2 installations also run in a subdomain folder and the config-file looks the same... never had that warning before... absolutely clueless what it means and how to get it deleted... but thx anyway!
... it's not bad luck, it's a bug ...
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Post by juergen »

Warning: main(/is/htdocs/######/www.mydomain.org/subfolder//include/inc_lib/files.private-filelist.inc.php)
Perhaps definition of the subdomain is gone wild ?
Would check the route of the subdomain in config department...

Jürgen
User avatar
lady_witchcraft
Posts: 94
Joined: Sun 14. Nov 2004, 19:19
Location: Austria
Contact:

Post by lady_witchcraft »

Code: Select all

include_once (PHPWCMS_ROOT."include/inc_lib/files.private-filelist.inc.php");
when i remove the / in the config line - the path is displayed right, but the warning still appears... but with the right path :wink:

i've checked everything, the subdomain definition at my webhoster, the path in config file etc... still clueless...
... it's not bad luck, it's a bug ...
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Please make a test and use

Code: Select all

$phpwcms["site"]              = "http://".$_SERVER['SERVER_NAME']."/";
instead of

Code: Select all

$phpwcms['site']       = 'http://subdomain.mydomain.org/';
and upload the whole folder /include/inc_lib/ folder again.

regards Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
User avatar
juergen
Moderator
Posts: 4556
Joined: Mon 10. Jan 2005, 18:10
Location: Weinheim
Contact:

Post by juergen »

There might be a problem when you set the subdomains root dir:

my-domain.com/subdir/

instead of

my-domain.com/subdir

Perhaps delete the domain and redo it without the ending slash.

So if a slash should be removed, then remove it in the domain settings ..

there are so many control panels.. all we do is GUESSING

Logical: All phpwcms installs are working... all identic .. MUST be setting of document_root or setting of subdomain. Can't see any other reason for this.
User avatar
lady_witchcraft
Posts: 94
Joined: Sun 14. Nov 2004, 19:19
Location: Austria
Contact:

SOLVED

Post by lady_witchcraft »

thx guys for your suggestions and help, i've solved the prob, but don't know how exactly :D just joking :lol:

i've replaced the whole inc_lib files on my webspace - like flip-flop suggested - with the files from the installation .zip and now the warning is gone... didn't change anything else - i think my sweet apple and/or dreamweaver on mac caused the error because of the file-name-length or something like that...


well, but i uploaded the files via dreamweaver again :shock: so i don't really know what file or what programm has caused the error - never mind - just in case someone gets the same warning - everythings doing fine again after overwriting the existing files...

again THX A LOT GUYS :D
... it's not bad luck, it's a bug ...
Post Reply