Hello, I'm trying to launch Shindig PHP under Apache 2.2 - PHP Version 5.3.5 but whenever I try to access to a ressource like:
gadgets/js/shindig-container:pubsub.js?c=1&debug=1
my Fiddler 2 (and the browser) reports a 404 error.

The lines I modified in container.php:
// The URL Prefix under which shindig lives ie if you have http://myhost.com/shindig/php set web_prefix to /shindig/php
 'web_prefix' => '/shindig/php',
 // If you changed the web prefix, add the prefix to these too
 'default_js_prefix' => '/shindig/php/gadgets/js/',
 'default_iframe_prefix' => '/shindig/php/gadgets/ifr?',

I haven't modified anything in container.js

The redirection seems to be working fine because whenever I go to some address like:

http://localhost:8080/shindig/php/test/index.html
It redirects me to /shindig/php/index.php

My rewrite rules:

<IfModule mod_rewrite.c>
       RewriteEngine On
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d
# NOTE: If you added a web_prefix to config, add it here too, e.g.:
       RewriteRule (.*) /shindig/php/index.php [L]
       #RewriteRule (.*) index.php [L]
# for OAuth signatures to work for POSTed data, always_populate_raw_data needs to be turned on
        php_flag always_populate_raw_post_data On
       php_flag magic_quotes_gpc Off
</IfModule>

If I type: http://localhost:8080/shindig/php/gadgets/js/test.html
Then there is no 404 error, the $servlet variable in index.php seems to be initialized.

If I type: http://localhost:8080/shindig/php/gadgets/js/shindig-container:pubsub.js?c=1&debug=1
Then I get the javascript code I want.

The 404 error launchs whenever I try to access via: http://localhost:8080/gadgets/js/shindig-container:pubsub.js?c=1&debug=1

I then modified samplecontainer.html so that /shindig/php is added in the url to load correctly the javascript but I get a blocking error on container.js, line 101:
SampleContainerGadget.inherits(shindig.BaseIfrGadget);

shindig.BaseIfrGadget is null

Did I miss something?

Armand

Reply via email to