Page 1 of 1

Can't open URL

Posted: Thu Apr 30, 2009 8:16 pm
by robbiez
Script URL: http://www.thepictureframingexperts.co. ... /link.html
Version of script: 1.7
Hosting company: 1and1
URL of phpinfo.php: http://www.thepictureframingexperts.co.uk/phpinfo.php
URL of session_test.php: http://www.thepictureframingexperts.co.uk/test.php
What terms did you try when SEARCHING for a solution: various and I have read many posts

Write your message below:

I am sorry for repeating other posts but I have read through every topic related to my problem.
In the admin panel I have a message saying users will not be able to submit a link as allow_remote_url is off.

Allow_remote_url is turned on - check the phpinfo.

I have also tried the simple script posted by Klemen that should display Googles homepage - this works as well and can be seen at the link above.

What am I missing??

Thanks
Robbiez

Posted: Fri May 01, 2009 5:46 am
by DC
Does everything else work fine?
Not sure why that would be when it seems it is set to On ...


DC

Posted: Fri May 01, 2009 6:04 am
by robbiez
When you say it works fine - myself or people wishin to submit links are unable to as they receive a Can't Open URL message.
I have ensured correct URL are being used.

Thanks

Posted: Fri May 01, 2009 2:18 pm
by DC
Ah it sounded like you ment it only showed up in the admin thats why I mentioned what I did, not sure on that one as I see it is indeed on in your
info I will edit the other so as not to confuse anyone.

I hope Klem has some ideas and a good answer for you on that one.

DC

Posted: Fri May 01, 2009 4:30 pm
by Klemen
How about if you copy the test page into the linkman folder - does it still work? It's possible you have a htaccess or something blocking allow_url_fopen locally.

Posted: Fri May 01, 2009 7:54 pm
by robbiez
I have put the test page in the linkman folder and now get an error:

http://www.thepictureframingexperts.co. ... n/test.php

Rob

Posted: Fri May 01, 2009 7:58 pm
by robbiez
I do have a htaccess file that contains various rewrite rules and "AddType x-mapp-php5 .php" but there is no reference to allow_url_fopen

Thanks

Rob

Posted: Fri May 01, 2009 8:18 pm
by Klemen
So LinkMan was right after all :wink:

You can either remove the htaccess or upload the phpinfo file in the linkman folder, see what php.ini gets called under "Loaded Configuration File" and enable allow_url_fopen in that php.ini file.

Posted: Sat May 02, 2009 7:22 am
by robbiez
So LinkMan was right after all
I wouldn't consider suggesting it was wrong in the first place!!

I have 'cured' the problem by placing a copy of the php.ini file in the linkman folder. I had put the phpinfo file in the linkman folder and that showed the all_url_fopen to be off.

I presume there are no issues with having duplicate php.ini file in different folder.

Thanks for your help
Rob

Posted: Sat May 02, 2009 7:24 am
by robbiez
A few beers are on route