Page 1 of 2

Error with 1.2-DEV Installation/Fehler bei der 1.2-DEV-Inst.

Posted: Wed 16. Feb 2005, 00:46
by jscholtysik
Hi,

at the moment I have installed the new 1.2-DEV release.
The following thing happened while the setup:

At the page with the database settings I have chosen to create all tables and confirmed the settings. Immediately I have got an error message that I should check my database settings. Normally this error message comes only when the database tables are already there! But my database was completely empty. Despite the setup routine created all tables (I have checked this!). When I unchecked the "Create all db tables", the setup had continued. Strange!

After the setup I have clicked on the "Login" link at the right top corner and I have got 4 warnings:

Over the login panel:
Warning: main(/www/xxx/htdocs/include/inc_ext/ss_image/ss_image.class.php): failed to open stream: No such file or directory in /www/xxx/htdocs/yyy/include/inc_lib/imagick.convert.inc.php on line 34

Warning: main(): Failed opening '/www/xxx/htdocs/include/inc_ext/ss_image/ss_image.class.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/xxx/htdocs/yyy/include/inc_lib/imagick.convert.inc.php on line 34
and in the login panel:
Warning: main(/www/xxx/htdocs/phpwcms_template/inc_default/startup.php): failed to open stream: No such file or directory in /www/xxx/htdocs/cms_test/phpwcms.php on line 411

Warning: main(): Failed opening '/www/xxx/htdocs/phpwcms_template/inc_default/startup.php' for inclusion (include_path='.:/usr/local/lib/php') in /www/xxx/htdocs/yyy/phpwcms.php on line 411
Both files exist:

- ss_image.class.php with 666
- startup.php with 666

So what could be the problem?


Thanks in advance.


Joachim

Posted: Wed 16. Feb 2005, 01:05
by marco
I got the exact same problems.

I will only post one of the warning messages which shows what the problem is:

Warning: main(c:/easyphp/www/include/inc_ext/ss_image/ss_image.class.php): failed to open stream: No such file or directory in c:\easyphp\www\1cms\phpwcms12\include\inc_lib\imagick.convert.inc.php on line 34

Note that the "phpwcms12" folder is missing on the first line between "www" and "include"; it should be
.../www/phpwcms12/include/...

I then edited the config.inc.php to delete the path from

$phpwcms["root"] = "1cms/phpwcms12/"; //default: ""

and set it to "".

This got rid of the warnign messages but now when trying to create newsletters or forums there are other error messages to the effect "can not find file", in other words it ca no longer find the path.

There are other warnings on the thumbs_list and thumbs_preview folders after setup (shown in red); I create them but the warnign is still there. Where shold they be created? I put them under the phpwcms12 folder.

Posted: Wed 16. Feb 2005, 01:57
by adAmo
receiving the same messages as above. both when creating the dbase, and start page for login.

Warning: main(/var/www/html/phpwcms_template/inc_default/startup.php): failed to open stream: No such file or directory in /var/www/html/pathto/phpwcms.php on line 411

Warning: main(): Failed opening '/var/www/html/phpwcms_template/inc_default/startup.php' for inclusion (include_path='.:/php/includes:/usr/share/php') in /var/www/html/pathto/phpwcms.php on line 411

Posted: Wed 16. Feb 2005, 02:13
by wjtaylor
You people are lucky... I have the same problem but I don't even get the warnings... just a message that says the system is down and to check back later... :(

But I checked my database structure with MysqlAdmin and it's empty.. I think that may be why i'm "unavailable" :)

Cheers,
Wynn

PS could someone PM me on how to upload an image to a reply? Thanks!

Posted: Wed 16. Feb 2005, 06:29
by Ben
Ditto to the error messages that are described above. Does anyone have any ideas as to what the problems may be? I'm itching to try out the visual form generator and being able to assign a link and alt tag to images!

EDIT:
I'm getting the following error messages. My installation is in the /info folder on the server, but the paths from below are not matching up. The first path lacks /info/. I have properly set the "root" variable in the config file to be "info".
Warning: main(/home/emgroup/public_html/include/inc_tmpl/articlecontent.list.tmpl.php): failed to open stream: No such file or directory in /home/emgroup/public_html/info/include/inc_lib/article.editcontent.inc.php on line 214

same problem - solved.

Posted: Wed 16. Feb 2005, 06:58
by purnsam
Same problem happend to me.

and this is my solution. all error message is gone and work well.

file: include/inc_lib/default.inc.php

line 37

//$phpwcms['DOC_ROOT'] = str_replace('/'.$phpwcms["root"].'include/inc_lib/default.inc.php', '', $phpwcms['DOC_ROOT']);


$phpwcms['DOC_ROOT'] = str_replace('/include/inc_lib/default.inc.php', '', $phpwcms['DOC_ROOT']);


In my case

http://localhost/dev12

so conf.inc.php
$phpwcms["root"] = "dev12"; //default: ""

Now everything is O.K.

Thanks.

Posted: Wed 16. Feb 2005, 07:47
by jscholtysik
Hi purnsam,

yes, this seems to be also the solution for me. Deletion of the code sequence
'.$phpwcms["root"].'
let disappear the warnings and I get a normal login screen.

Thank you!


Joachim

Posted: Wed 16. Feb 2005, 07:48
by Ben
purnsam,
You suggestions worked for me!
Thanks.

Posted: Wed 16. Feb 2005, 10:49
by Karla
MeThinks that although this ~works~
IT is too drastic a variance from what OG intended
Like chopping an arm off for a "hangnail" :wink:

The code for defining DOC_ROOT & PHPWCMS_ROOT just isn't working quite right. I noticed it in last dev release... when trying to use SPAW.

... so keep a lookout here for some tiny "syntax" change

EDIT:
I am also getting this error:
Fatal error: Call to undefined function: stripped_cache_content() in index.php on line 215

Posted: Wed 16. Feb 2005, 18:33
by adAmo
this work around is working for me too! (thx)
agree that it's probably not the final answer though.

Posted: Thu 17. Feb 2005, 18:03
by Ben
Oliver,

Could you please confirm that the above changes are the proper approach to fixing the doc root problem? If not, can you suggest another fix that is more correct?
Thanks.

Re: same problem - solved.

Posted: Sat 19. Feb 2005, 04:29
by transm
purnsam wrote:Same problem happend to me.

and this is my solution. all error message is gone and work well.

file: include/inc_lib/default.inc.php

line 37

//$phpwcms['DOC_ROOT'] = str_replace('/'.$phpwcms["root"].'include/inc_lib/default.inc.php', '', $phpwcms['DOC_ROOT']);


$phpwcms['DOC_ROOT'] = str_replace('/include/inc_lib/default.inc.php', '', $phpwcms['DOC_ROOT']);


In my case

http://localhost/dev12

so conf.inc.php
$phpwcms["root"] = "dev12"; //default: ""

Now everything is O.K.

Thanks.

Yes, I independently worked out the exact same fix to the problem. I just installed it today from a default fantastico release from ages back. Also, I had to manually add some cache tables. Not sure what else is wrong.

Can anyone help me with this problem when I add an rss feed. It comes back asthis on the page even though the rss feed still displays :

Code: Select all

 fopen(content/rss/rss_ec4ef86d176d175087f7d5a6dec4cd9a): failed to open stream: Permission denied in /home/....deleted..../include/inc_lib/general.inc.php on line 680
I've tried CHMODing files but nothing happened. What is the problem? Also, the content/rss doesn't exist (the rss folder, only the content) is that path ok or does it look bad?

Incidentally, was this a new function (to add RSS feeds) because it seems like a good idea. What would be better would be an archive function for all the feeds and not just show the latest ones from the feed. Also, I could only get it to show on the 'content' page and not on any other part of the page (there is a drop down for left, right, content, footer, etc.).

Posted: Sat 19. Feb 2005, 04:41
by transm
I add the @ on line 680 to stop it showing the error I received when displaying the RSS feed. Can anyone explain what the problem is (other than the file not existing)? What is this function for exactly?

Code: Select all


function write_textfile($filename, $text) {
	if($fp = @fopen($filename, "w+b")) {
		if(empty($text)) $text = "\n";
		fwrite($fp, $text);
		fclose($fp);
		return true;	
	} else {
		return false;
	}
}

Posted: Sat 19. Feb 2005, 04:54
by transm
I figured out how to change it to show on the left (added {left} in the template).

Same prob, no help from this post: 1.2.1.dev Apache Server

Posted: Mon 11. Apr 2005, 22:52
by juergen
welcome back 2 problems ! :D

Just installed current dev Version on apache web server, running linux.

Server doc. root is recognized in installation. Everything ok with login. Next thing trying to type in content. Same problem as in threads above. Running in cms named subdir, witch is not recognized for included files.

Warning: main(/srv/www/web0/html/phpwcms_template/inc_default/startup.php) [function.main]: failed to create stream: No such file or directory in /srv/www/web0/html/cms/phpwcms.php on line 411

Warning: main() [function.main]: Failed opening '/srv/www/web0/html/phpwcms_template/inc_default/startup.php' for inclusion (include_path='.') in /srv/www/web0/html/cms/phpwcms.php on line 411

default.inc.php seams to be changed, not the same syntax found as in above. Anyone an idea ?

Tried the above hack .. BUUUT : complete lost of sql connection !

You see ! I am a stupid old guy *g*

zu deutsch:

Dieses System auf einem Server, die aktuellste Version. Der in diesem Thread beschriebene Hack funktioniert nicht. Als Folge habe ich mit dem Verlust der Datenbakverbindung zu 'leben'. Da geht dann ganz genau garnichts mehr.

Ich frage mich ob es etwas bringen würde, die Installation eine Etage nach oben zu frachten, also direkt in das html Verzeichnis. Mit der htacess habe ich auch schon rumgespielt aber bisher nur die Anzahl der Fehlermeldungen vergrößert... !

MAYDAY :!: :!:

p.s. ich packe den thread hier rein da mir meine Fehleistung plausibler ist als die des cms *g* So mal sehen ob jemand das Forum noch besser umgegraben hat als ich :-)