[yabook-users] Error at Installation (.php vs. .php5?)

Get help with installation and running YaBook guestbook here. Please do not post bug reports or feature requests here.

Moderators: Moderator Team, Development Team

[yabook-users] Error at Installation (.php vs. .php5?)

Postby COMKEEN on Mon Aug 16, 2004 12:47 pm

Hello there!

I tried to install YaBook on my Webserver, but I encountered a problem I can't
solve by my own:

My Webhoster runs both PHP4 and PHP5; Since YaBook uses the latter one, I have
to rename YaBooks .php files to .php5, in order to use the right interpreter.

So I renamed all .php files to .php5, chmodded them to 755 and uploaded them
to my Server.

In the file (which is now called) index.php5, I changed this part to fit my
needs:

Code: Select all
define('YABO_PHPEXT', 'php5'); // Change this if your PHP extension is not *.php!


But when I visit index.php5, I get the following error:

Code: Select all
Warning: main(./private/lib/sourdough/Sourdough.class.php) [function.main]:
failed to open stream: No such file or directory
in /path/to/YaBook-0.95a/private/index.inc.php5 on line 25
 
 Warning: main() [function.include]: Failed opening
'./private/lib/sourdough/Sourdough.class.php' for inclusion
(include_path='.:..') in /path/to//YaBook-0.95a/private/index.inc.php5 on
line 25
 
 Fatal error: Class 'Sourdough' not found
in /path/to/YaBook-0.95a/private/index.inc.php5 on line 26


Any idea how to solve this? I am not familiar with PHP, but I think, the
problem is that YaBook looks for Sourdough.class.php which is now called
Sourdough.class.php5...but YaBook should already know this, because I set
YABO_PHPEXT to "php5".

TIA,
Christian[/code]
COMKEEN
 
Posts: 2
Joined: Mon Aug 16, 2004 12:42 pm

RE: [yabook-users] Error at Installation (.php vs. .php5?)

Postby pipo on Mon Aug 16, 2004 12:55 pm

Hi Christian

Changing file extensions is still handled in a pretty unclean way.
For this to work you should change the following lines:

/index.php, line 27:
Code: Select all
define('YABO_PHPEXT', 'php5'); // Change this if your PHP extension is not *.php!



/private/index.inc.php, line 25:
Code: Select all
include_once(YABO_SOURDOUGH_PATH.'Sourdough.class.'.YABO_PHPEXT);



/sourdough/conf/global.inc.php, line 19:
Code: Select all
define('SOURD_PHPEXT', 'php5'); // deprecated!!



I hope this works for you.

take care
philip
Philip Iezzi - Development Team Leader, phpee.com
PHPee.com | Downloads | PPhlogger
hosted by Onlime Webhosting
User avatar
pipo
Site Admin
 
Posts: 773
Joined: Sat Nov 15, 2003 2:57 pm
Location: Zurich, Switzerland

Postby COMKEEN on Mon Aug 16, 2004 1:21 pm

Hi pipo,

I wish I could report something else, but it still doesn't work :(

I get lots of errors which, I think so, are caused by the same reason:

(This time I kept the original paths, maybe it helps debugging)

Code: Select all
Warning: main(/www/htdocs/v093934/opt/YaBook-0.95a/private/lib/sourdough/core.function.php) [function.main]: failed to open stream: No such file or directory in /www/htdocs/v093934/opt/YaBook-0.95a/private/lib/sourdough/Sourdough.class.php5 on line 21
 
 Warning: main() [function.include]: Failed opening '/www/htdocs/v093934/opt/YaBook-0.95a/private/lib/sourdough/core.function.php' for inclusion (include_path='.:..') in /www/htdocs/v093934/opt/YaBook-0.95a/private/lib/sourdough/Sourdough.class.php5 on line 21
 
 Warning: Sourdough::__construct(/www/htdocs/v093934/opt/YaBook-0.95a/private/lib/sourdough/conf/config.inc.php) [function.--construct]: failed to open stream: No such file or directory in /www/htdocs/v093934/opt/YaBook-0.95a/private/lib/sourdough/Sourdough.class.php5 on line 65
 
 Warning: Sourdough::__construct() [function.include]: Failed opening '/www/htdocs/v093934/opt/YaBook-0.95a/private/lib/sourdough/conf/config.inc.php' for inclusion (include_path='.:..') in /www/htdocs/v093934/opt/YaBook-0.95a/private/lib/sourdough/Sourdough.class.php5 on line 65
 
 Notice: Undefined variable: conf in /www/htdocs/v093934/opt/YaBook-0.95a/private/lib/sourdough/Sourdough.class.php5 on line 66
 
 Fatal error: Class 'Sd_Array' not found in /www/htdocs/v093934/opt/YaBook-0.95a/private/lib/sourdough/Sourdough.class.php5 on line 70


One thing I noticed in your posting was:
/sourdough/conf/global.inc.php, line 19:


In my installation, the file is located at $YABOOKDIR/private/lib/... and not under $YABOOKDIR/... like the other files. Would this be important?

Thanks for your quick answer, though!
Christian
COMKEEN
 
Posts: 2
Joined: Mon Aug 16, 2004 12:42 pm

Postby Tatiana-15241 on Sat Aug 27, 2005 1:17 am

Oh, My God!
I'm not going to buy my kids an encyclopedia. Let them walk to school like I did. (Yogi Berra)

Sincerily yours, [url=http://]Tatiana[/url]Prozac
Tatiana-15241
 
Posts: 1
Joined: Fri Aug 19, 2005 6:37 am


Return to YaBook Support

Who is online

Users browsing this forum: No registered users and 1 guest

cron