PHPee.com PHP development forum
[yabook-users] Error at Installation (.php vs. .php5?)

 
Post new topic   Reply to topic    phpee.com Forum Index -> YaBook Support
View previous topic :: View next topic  
Author Message
COMKEEN



Joined: 16 Aug 2004
Posts: 2

PostPosted: Mon Aug 16, 2004 11:47 am    Post subject: [yabook-users] Error at Installation (.php vs. .php5?) Reply with quote
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:

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:

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]
Back to top
View user's profile Send private message
pipo
Site Admin


Joined: 15 Nov 2003
Posts: 761
Location: Zurich, Switzerland

PostPosted: Mon Aug 16, 2004 11:55 am    Post subject: RE: [yabook-users] Error at Installation (.php vs. .php5?) Reply with quote
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:
define('YABO_PHPEXT', 'php5'); // Change this if your PHP extension is not *.php!



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



/sourdough/conf/global.inc.php, line 19:
Code:
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 | CVS
Back to top
View user's profile Send private message Visit poster's website
COMKEEN



Joined: 16 Aug 2004
Posts: 2

PostPosted: Mon Aug 16, 2004 12:21 pm    Post subject: Reply with quote
Hi pipo,

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

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:

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:
Quote:

/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
Back to top
View user's profile Send private message
Post new topic   Reply to topic    phpee.com Forum Index -> YaBook Support All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB
Theme design based on Team 101 Designs, modified by Philip Iezzi