Note that there are some explanatory texts on larger screens.

plurals
  1. POphp "script tried to execute a method or access a property of an incomplete object" error
    primarykey
    data
    text
    <p>I have looked up this error, and it seems the common issue is caused by not putting include()'s or require()'s BEFORE session_start().</p> <p>However, this is not the case for me.</p> <p>I am getting the following error:</p> <p>Fatal error: Zend_Http_Client::request() [zend-http-client.request]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition &quot;Zend_Http_Client_Adapter_Socket&quot; of the object you are trying to operate on was loaded <em>before</em> unserialize() gets called or provide a __autoload() function to load the class definition in /home/content/<em>/</em>/*/*****/html/ZendGdata-1.8.4PL1/library/Zend/Http/Client.php on line 865</p> <p>Any idea why?</p> <p>Here are the three relevant files: login.php, members.php, and functions.php...</p> <p>login.php:</p> <pre><code> $newIncludePath = array(); $newIncludePath[] = '../ZendGdata-1.8.4PL1/library'; $newIncludePath = implode($newIncludePath); set_include_path($newIncludePath); // load classes require_once 'Zend/Loader.php'; Zend_Loader::loadClass('Zend_Gdata'); Zend_Loader::loadClass('Zend_Gdata_ClientLogin'); Zend_Loader::loadClass('Zend_Gdata_Calendar'); Zend_Loader::loadClass('Zend_Http_Client'); Zend_Loader::loadClass('Zend_Gdata_AuthSub'); session_start(); $serviceName = Zend_Gdata_Calendar::AUTH_SERVICE_NAME; // predefined service name ('cl') for calendar $applicationName = 'yourCompany-yourAppName-v1'; // Create an authenticated HTTP client $httpClient = Zend_Gdata_ClientLogin::getHttpClient('*****@gmail.com', '*****', $serviceName, null, $applicationName); $client = new Zend_Gdata_Calendar($httpClient, $applicationName); // Create an instance of the Calendar service $_SESSION['gdataCal'] = $client; </code></pre> <p>members.php:</p> <pre><code> $newIncludePath = array(); $newIncludePath[] = '../ZendGdata-1.8.4PL1/library'; $newIncludePath = implode($newIncludePath); set_include_path($newIncludePath); // load classes require_once 'Zend/Loader.php'; Zend_Loader::loadClass('Zend_Gdata'); Zend_Loader::loadClass('Zend_Gdata_ClientLogin'); Zend_Loader::loadClass('Zend_Gdata_Calendar'); Zend_Loader::loadClass('Zend_Http_Client'); Zend_Loader::loadClass('Zend_Gdata_AuthSub'); session_start(); $g_url = add_gcal($_SESSION['gdataCal'], $_SESSION['title'].....etc.); </code></pre> <p>functions.php:</p> <pre><code> &lt;?php $newIncludePath = array(); $newIncludePath[] = '../ZendGdata-1.8.4PL1/library'; $newIncludePath = implode($newIncludePath); set_include_path($newIncludePath); // load classes require_once 'Zend/Loader.php'; Zend_Loader::loadClass('Zend_Gdata'); Zend_Loader::loadClass('Zend_Gdata_ClientLogin'); Zend_Loader::loadClass('Zend_Gdata_Calendar'); Zend_Loader::loadClass('Zend_Http_Client'); session_start(); function add_gcal($gdataCal, $title....etc.){ try { $newEvent = $gdataCal-&gt;newEventEntry(); $newEvent-&gt;title = $gdataCal-&gt;newTitle($title); $newEvent-&gt;where = array($gdataCal-&gt;newWhere($where)); $newEvent-&gt;content = $gdataCal-&gt;newContent("$desc"); $when = $gdataCal-&gt;newWhen(); $when-&gt;startTime = $date; $when-&gt;endTime = $date; $newEvent-&gt;when = array($when); $createdEvent = $gdataCal-&gt;insertEvent($newEvent); return $createdEvent-&gt;id-&gt;text; } catch (Zend_Gdata_App_Exception $e) { return NULL; } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload