I'd strongly recommend nobody ever use the ze1_compatibility_mode flag; the
documentation around it is confusing, but ultimately it's only really
necessary if you're using a very small set of PHP extensions. Most php4 code
runs fine on a php5 setup without this flag.

On Tue, Jun 3, 2008 at 8:22 AM, Chris Chabot <[EMAIL PROTECTED]> wrote:

> Ah see now that you told us that, i think the fix presented it's self
> too.... disable the ze_compatibility_mode? :)
>
> In my php.ini it's off:
> ; Enable compatibility mode with Zend Engine 1 (PHP 4.x)
> zend.ze1_compatibility_mode = Off
>
> which is the default for a php 5 installation.
>
> If you don't have permission to edit the php.ini file (a shared host or
> something) you could try to add it to the .htaccess file:
> php_flag zend.ze1_compatibility_mode off
>
> but that does depend on your host having "AllowOverride All" in it's
> config..
>
>        -- Chris
>
>
>
> On Jun 3, 2008, at 5:14 PM, xin zhang wrote:
>
>  The error message from the log file is:
>>
>> PHP Fatal error:  Cannot clone object of class SimpleXMLElement due to
>> 'zend.ze1_compatibility_mode' in
>> /Library/WebServer/Documents/shindig/php/src/gadgets/GadgetSpecParser.php on
>> line 31
>>
>>
>>
>>
>> --- On Tue, 6/3/08, xin zhang <[EMAIL PROTECTED]> wrote:
>>
>>  From: xin zhang <[EMAIL PROTECTED]>
>>> Subject: Re: shindig php
>>> To: [email protected]
>>> Date: Tuesday, June 3, 2008, 10:02 AM
>>> Thanks Chris.
>>>
>>> I have fixed the rewrite problem, but when I try the
>>> example
>>>
>>>
>>> http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
>>>
>>> it returned empty page without error message, I checked and
>>> it died at calling $class->doGet() and $servlet returned
>>> GadgetRenderingServlet.
>>>
>>> What is the problem?
>>>
>>>
>>>
>>> --- On Mon, 6/2/08, Chris Chabot <[EMAIL PROTECTED]>
>>> wrote:
>>>
>>>  From: Chris Chabot <[EMAIL PROTECTED]>
>>>> Subject: Re: shindig php
>>>> To: [email protected]
>>>> Date: Monday, June 2, 2008, 5:02 PM
>>>> First of all make sure if it actually reaches the
>>>>
>>> index.php
>>>
>>>> file, if
>>>> not then the mod_rewrite part is your problem.
>>>>
>>>> You can check this by putting a temporary
>>>> die("in index.php");
>>>> at the top of the index.php file just after the
>>>>
>>> <?php
>>>
>>>> bit.
>>>>
>>>> The second thing to check is the servlet => url
>>>>
>>> mapping
>>>
>>>> part, the
>>>> easiest way to find out is probably to put some
>>>>
>>> echo's
>>>
>>>> in the
>>>> index.php file, something like:
>>>>
>>>> // Try to match the request url to our servlet mapping
>>>> $servlet = false;
>>>> $uri = $_SERVER["REQUEST_URI"];
>>>> foreach ($servletMap as $url => $class) {
>>>>        echo "matching ".substr($uri, 0,
>>>> strlen($url))." against $url<br
>>>>
>>> />\n";
>>>
>>>>        if (substr($uri, 0, strlen($url)) == $url) {
>>>>                $servlet = $class;
>>>>                break;
>>>>        }
>>>> }
>>>>
>>>> and see what the output is ... chances are there's
>>>>
>>> some
>>>
>>>> obvious
>>>> difference that causes a string mismatch ... fix that
>>>>
>>> and
>>>
>>>> your up and
>>>> running :)
>>>>
>>>> G'luck and let me know if that helped!
>>>>
>>>>        -- Chris
>>>>
>>>>
>>>> On Jun 2, 2008, at 9:36 PM, xin zhang wrote:
>>>>
>>>>  Hi
>>>>>
>>>>> I followed the instruction here
>>>>>
>>>> http://incubator.apache.org/shindig/#preReqs
>>>>
>>>>> and did the full checkout. I didn't create a
>>>>>
>>>> virtual host and
>>>>
>>>>> modified web_prefix to '/shindig/php' and
>>>>>
>>>> htaccess to RewriteRule (/
>>>>
>>>>> shindig/php/*) index.php [L]
>>>>>
>>>>> But when I point my browser to
>>>>>
>>>>
>>>>
>>> http://your.host/shindig/php/gadgets/ifr?url=http://www.labpixies.com/campaigns/todo/todo.xml
>>>
>>>>
>>>>  , I got Page Not Found error.
>>>>>
>>>>> What am I missing here?
>>>>>
>>>>> Thanks
>>>>>
>>>>>
>>>>>
>>>>>
>>
>>
>>
>

Reply via email to