Go Back   ZeroC Forums > Help Center

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 02-22-2005
René Pedersen René Pedersen is offline
Registered User
 
 
Join Date: Feb 2005
Posts: 6
IcePHP: Profile not found.

I am having trouble loading a profile in php. I took a look at:
Debug named profiles
and found that my issue looked similar, only the solution didn't work for me.

Here's what I have:

httpd.conf, added this line at the bottom:
php_value ice.profiles /home/qube/iceprofiles/ice.profiles

ice.profiles, full file:
[Test]
slice=-I/home/qube/runestone/Code/Common/Ice /home/qube/runestone/Code/Common/Ice/GameClient.ice


php.ini:
I tried adding
ice.profiles="/home/qube/iceprofiles/ice.profiles"
to the bottom but that gave an error:
PHP Fatal error: Unable to start ice module in Unknown on line 0
...so I removed that again.

With the above configuration I get a
Fatal error: profile `Test' not found in /var/www/html/ice.php on line 5
from the following script:
<?php
print "Start ...<br>";
Ice_LoadProfile("Test");
Ice_dumpProfile();
print "<br>Done.";
?>


I hope it's just a simple configuration mistake somewhere (again) but I'll admit upfront I've spent hours trying to get this to work. :-/

Regards,
René K.P.
Reply With Quote
  #2 (permalink)  
Old 02-22-2005
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 971
Hi René,

Sorry you're having trouble, I'll take a look at this.

Can I assume that you've already checked system settings such as permissions to verify that the Web server can access the profile file? Have you also examined the Web server logs for any relevant information?

BTW, please always specify your configuration information, such as the version of your OS, Web server, PHP, Ice, and compiler.

Take care,
- Mark
Reply With Quote
  #3 (permalink)  
Old 02-23-2005
Nis Baggesen Nis Baggesen is offline
Registered User
 
 
Join Date: Aug 2004
Location: Aarhus, Denmark
Posts: 112
René is away so I'll just fill in the blanks I know anything about
Quote:
Originally Posted by mes
BTW, please always specify your configuration information, such as the version of your OS, Web server, PHP, Ice, and compiler.
Sorry about that. The spec are :

OS: Linux, Fedora Core 3, krnl 2.6.10-1.766smp
Web server: Apache, 2.0
PHP: 5.0.3
Ice: 2.0.0
Compiler: gcc 3.4.2

I'll look into the web server access priviliges etc. but I assume they are ok.

mvh

Nis
Reply With Quote
  #4 (permalink)  
Old 02-28-2005
René Pedersen René Pedersen is offline
Registered User
 
 
Join Date: Feb 2005
Posts: 6
I have checked permissions on:
/home/qube/runestone/Code/Common/Ice/GameClient.ice
/home/qube/iceprofiles/ice.profiles

Both files (and their path) have read and execute permissions set for everyone.

Are there any other files I should check?

Regards,
René K.P.
Reply With Quote
  #5 (permalink)  
Old 02-28-2005
mes's Avatar
mes mes is offline
ZeroC Staff
 
Name: Mark Spruiell
Organization: ZeroC, Inc.
Project: Ice Developer
 
Join Date: Feb 2003
Location: California
Posts: 971
Hi,

I've never had success using php_value to define Ice configuration directives. I haven't bothered to investigate because it always works in a php.ini file.

I have tried to reproduce this problem. The only way I was able to cause the same error was when I made a configuration mistake.

Specifically, I was editing the wrong php.ini file so the PHP extension never saw my ice.profiles directive. I should have been editing /usr/local/lib/php.ini instead, and once I did it worked as expected.

- Mark
Reply With Quote
  #6 (permalink)  
Old 03-01-2005
René Pedersen René Pedersen is offline
Registered User
 
 
Join Date: Feb 2005
Posts: 6
Quote:
Originally Posted by René Pedersen
php.ini:
I tried adding
ice.profiles="/home/qube/iceprofiles/ice.profiles"
to the bottom but that gave an error:
PHP Fatal error: Unable to start ice module in Unknown on line 0
...so I removed that again.
As it turns out the above error was a "healthy" error - the ice.profiles directive was correct so by removing it I spent a lot of time looking for something to correct which of course wasn't there.

The error that lead to the above one was found just before it in the error_log:
sh: icecpp: command not found
I had simply failed to notice that there was more than one thing at stake there.
Copying icecpp from /opt/Ice-2.0.0/bin into /usr/bin solved the problem.

To reiterate:
- In the end nothing was added to httpd.conf.
- The "profile not found" error was caused by the fact that ice.profiles was not set in php.ini.
- When ice.profiles was set it caused the following error:
sh: icecpp: command not found
PHP Fatal error: Unable to start ice module in Unknown on line 0

- This error was fixed by placing icecpp in the path.

Thanks again for your help, I am looking forward to finally getting some work done. :-)

Regards,
René K.P.
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
`GLIBCXX_3.4.4' not found Rajan Help Center 2 01-03-2006 01:34 PM
Mutex.h : identifier not found shimrod Help Center 4 09-17-2005 10:13 PM
IcePHP install error: Ice files not found in deault path. René Pedersen Help Center 14 09-06-2005 04:21 PM
sorry, i can not found php5.0.0b2 ... damingyipai Comments 2 02-24-2004 05:06 AM
uuid.h not found Bruce Help Center 7 02-20-2003 09:57 AM


All times are GMT -4. The time now is 10:26 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.