Dezinerfolio

[SOLVED} We expected 'true' from the url : http://localhost/dfgallery_v2.005/api/rest/test_curl

The solution to the problem is to make sure and have mod_rewrite enabled properly. Mod_rewrite enables the server to produce "clean" URL's that why it's called cURL for clean urls. I had the same problem when I installed it on my WAMP server. After I had enabled mod_rewrite and edited the httpd.conf file to allow overrides the problem went away. Have fun!!

Trackback URL for this post:

http://www.dezinerfolio.com/trackback/417
Anonymous's picture

Hi, I am Osama Ahmed, I have uploaded the whole folder to the hosting I have it from my friends share. I am having the same problem but I am unable to fix it. please do help me its important for me. I am notr trying it on localhost i am installing it on my friends hosting server. its a shared one in sub folder from the root.

Osama Ahmed (not verified)
Sun, 03/01/2009 - 22:21
photo's picture

This issue is far from SOLVED. :(

Many users report having all the right modules in place and loaded correctly. the 2.05 release does not have a test_curl file in the given directory nor does any other file in the distribution contain test_curl as a variable.

Furthermore, 2.04 is not a fallback as the same curl script there tried to use an apache_mod call which has been deemed a security risk and shut off by many ISPs.

At present we all seem stuck. If anyone knows how to fake out that if/else statement to think ti's true please post something for us.

Thanks.

Fri, 03/06/2009 - 10:38
Anonymous's picture

After a couple of hours of frustration, I managed to get rid of the error. This is my case only, so your mileage may vary. I am on Mac OS X Leopard.
1) create a gallery directory up from your root, not in your user directory. e.g., if your web root directory is /www, type "mkdir /www/gallery". Copy the zip file in there and unpack.
2) chown -R www:www . (yes, it's a "dot" at the end, after the space)
3) edit your httpd.conf file: include this:

AllowOverride All

4) restart apache web server (sudo apachectl restart)
5) go to your web browser and type "http://(your server name)/gallery

I tried to install gallery in my home directory - didn't work, something was missing in the redirections. Otherwise, I'm using the generic version of Apache that came with Mac OS X Leopard.

Good luck!

Sergei (not verified)
Sun, 03/08/2009 - 12:56
Anonymous's picture

When editing the httpd.conf file, you not only have to set "AllowOverride" to "all", but you also need to make sure that the rewrite module loads. To do this, find the line that says -

#LoadModule rewrite_module modules/mod_rewrite.so

and take out the "#" to uncomment it. Restart your webserver, and try again. If there was no "#", then the module is loading and your problem lies somewhere else.

This worked for me, Apache 2.2 on vista.

Anonymous (not verified)
Wed, 03/18/2009 - 22:56
Anonymous's picture

Here's what i've found (for those of you on shared hosting accounts): While it appears that cURL is enabled, it might not be. If it doesn't work contact your host's tech support. In my case, my host fully enables the cURL binary as needed/requested.

Matt (not verified)
Fri, 03/20/2009 - 19:04
Anonymous's picture

I previously posted that on shared hosting you just need to have the host full enable cURL. Alas, this did not work. It appears that the issue is that DFGallery can't find cURL on my account.

It would be nice if there was an advanced option for specifying the path to cURL.

Matt (not verified)
Fri, 03/20/2009 - 21:05
photo's picture

Matt,

Sounds like you've got a very NICE hosting company. Are you in fact running a 'shared' site (rather than Virtual dedicated or full dedicated)?

I've gotten nowhere with Godaddy and for the little I do with them I'd be more that happy to switch. Can you please either let us know here or PM me with the info for the provider you're using?

Thanks.

Fri, 04/03/2009 - 08:51
revive's picture

Hey photo,

Check out Revive Hosting.. http://revivemarketing.org (Shared - NOT oversold, VPS and Dedicated on request)
Service with a smile!

Fri, 04/24/2009 - 22:32
Anonymous's picture

I agree, this issue is FAR from solved. Clearly, it does not work on shared accounts (so do not tell us to modify the server set up). I tried all the proposed modifications in the .htaccess files... without success.
And NO reaction from the developer. Why ?

Alexandre (not verified)
Thu, 04/30/2009 - 08:19
Anonymous's picture

Alright I have tested rewrite to .htaccess its working 100%
My issue is I get this error when entering the domain.com/dfg/api/rest/test_curl
Any Ideas?

" <?xml version="1.0"?>

Unhandled php error

Undefined offset: -1 @ /usr/local/pem/vhosts/177##5/webspace/httpdocs/flash/dfg/app/controllers/api.php @ 86

"

Any ideas greatly appreciated
Cheers
Craig

Craig (not verified)
Mon, 05/04/2009 - 17:04

Post new comment

The content of this field is kept private and will not be shown publicly.