Results 1 to 5 of 5

Thread: Unusual PHP Error

  1. #1
    PV-Patrick is offline Registered User
    Name: Patrick Hallinan
    Organization: Personal
    Project: Mumble
    Join Date
    Oct 2010
    Posts
    12

    Unusual PHP Error

    Ice 3.4.1 + PHP 5.3.3

    I am having an unusual problem. I am receiving the following error, but only in a specific instance and I am trying to narrow down what's causing it:

    Code:
    Fatal error: Uncaught exception 'RuntimeException' with message 'no object found in IcePHP_defineStruct()' in /opt/Ice-3.4.1/php/Ice/Identity.php:44 Stack trace: #0 /opt/Ice-3.4.1/php/Ice/Identity.php(44): IcePHP_defineStruct('::Ice::Identity', 'Ice_Identity', Array) #1 /opt/Ice-3.4.1/php/Ice/LocalException.php(21): require('/opt/Ice-3.4.1/...') #2 /opt/Ice-3.4.1/php/Ice.php(108): require('/opt/Ice-3.4.1/...')
    I am running this to interface with Mumble. I have gotten this working with the 3rd party application in all instances except for 1, automation callback when someone makes a payment. The 1 where it doesn't, here is the flow:
    1) User makes a payment and a callback file is called, let's call it: callback.php
    2) callback.php then runs a method to run the module I have created, let's call that file module.php.

    Inside module.php at the top, I have the following:
    Code:
    if (extension_loaded('ice')) {
    	require_once 'Ice.php';
    	require_once 'Murmur.php';
    }
    require_once("Mumble_Interface.php");
    Inside Mumble_Interface.php is the code to initialize ICE and interface with Mumble server, etc.
    Code:
    		$initData = new Ice_InitializationData;
    		$initData->properties = Ice_createProperties();
    		$initData->properties->setProperty('Ice.ImplicitContext', 'Shared');
    		$ICE = Ice_initialize($initData);
    
    		try {
    			$proxy = $ICE->stringToProxy('Meta:tcp -h '.$ip.' -p 6502');
    			$this->meta = $proxy->ice_checkedCast('::Murmur::Meta')->ice_context($this->secret);
    			return TRUE;
    		} catch (Ice_ConnectionRefusedException $exc) {
    			return "Error: ".$exc;
    		}
    Any ideas on why this module and Ice/Mumble interface would work when calling directly via the system and not when a payment callback file calls the module? There seems to be no difference in phpinfo() output between working/non-working and no errors on require_once that I can see.

  2. #2
    mes's Avatar
    mes
    mes is online now ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,445
    See this thread for a similar discussion.

    Regards,
    Mark

  3. #3
    mes's Avatar
    mes
    mes is online now ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,445
    Sorry, I forgot to mention that this issue has been fixed in Ice 3.4.2.

    Cheers,
    Mark

  4. #4
    PV-Patrick is offline Registered User
    Name: Patrick Hallinan
    Organization: Personal
    Project: Mumble
    Join Date
    Oct 2010
    Posts
    12

    Red face

    Hi Mark, thanks for the information!
    I did see that thread before and didn't really think it applied in my situation since it worked in an almost similar situation but wasn't quite sure.

    Thanks for the note about 3.4.2, however I do have an additional question in regards to upgrading. What would be the best way to upgrade 3.4.1 to 3.4.2. I am running RHEL4 (Update 8) so I don't want to break this version of Ice install as it was such a pain in the a$$ to get it working the first time.

  5. #5
    PV-Patrick is offline Registered User
    Name: Patrick Hallinan
    Organization: Personal
    Project: Mumble
    Join Date
    Oct 2010
    Posts
    12
    I just compiled 3.4.2 from source again and changed the path for PHP and all works perfectly now. Thank you very much Mark!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Strange error in PHP
    By xorax in forum Help Center
    Replies: 7
    Last Post: 04-09-2008, 04:17 PM
  2. Ice 2.1.2 and PHP SSL error ???
    By surfer in forum Help Center
    Replies: 4
    Last Post: 01-09-2006, 05:29 AM
  3. Timeouts for unusual events
    By rhochmuth in forum Help Center
    Replies: 11
    Last Post: 05-18-2005, 12:09 AM
  4. Ice php error report
    By fengxb in forum Help Center
    Replies: 2
    Last Post: 05-11-2004, 06:06 AM
  5. Ice Php 1.0.2 link error
    By fengxb in forum Help Center
    Replies: 12
    Last Post: 03-09-2004, 12:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •