"allow_url_fopen" / Warning: file_get_contents()

Permalink Browser Info Environment
What am i doing wrong here:

Warning: file_get_contents() [function.file-get-contents]: http:// wrapper is disabled in the server configuration by allow_url_fopen=0 in /data/vhosts/askwiki.ch/www/htdocs/packages/tws_box_grabber/libraries/phpQuery-onefile.php on line 4767
Warning: file_get_contents(http://www.ottiger.org) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /data/vhosts/askwiki.ch/www/htdocs/packages/tws_box_grabber/libraries/phpQuery-onefile.php on line 4767


source: http://www.ottiger.org
css-selector: #full-content-sidebar

Thanks for any helpful suggestions!

Greetings from switzerland.

Type: Discussion
Status: New
ottigerb
View Replies: View Best Answer
firepixel replied on at Permalink Reply
firepixel
Hi there,

Sorry for the late reply, I have tried with these settings and it works fine apart from the imported block running javascript functions that aren't loaded.

Might be a problem with the way your server or PHP is set up, try using the source as "http://www.ottiger.org/index.php".

Hope you get it sorted.
ottigerb replied on at Permalink Reply
ottigerb
Thanks for your reply:

"allow_url_fopen" is disabled in our server - because of security. Any chance by doing this by CURL? Many THANKS for any helpful suggestions.
firepixel replied on at Permalink Reply 1 Attachment
firepixel
That wouldn't be too difficult, however CURL doesn't work on my servers, so I can't test it!

I have made a modification that detects allow_url_fopen and then chooses which to use, but I can't test it!

Can you overwrite the existing file in the package libraries folder with the one attached and see if this works?

Thanks
ottigerb replied on at Permalink Reply
ottigerb
Hey firepixel - thanks for your work! Two thumbs up!

I have overwritten the existing file in the package libraries folder with the one attached - and then:

Fatal error: Call to undefined function file_get_contents_curl() in /data/vhosts/askwiki.ch/www/htdocs/packages/tws_box_grabber/libraries/phpQuery-onefile.php on line 4776

Hope we find a solution! Greetings from switzerland!
firepixel replied on at Permalink Reply 1 Attachment
firepixel
Sorry, my fault, this one should work.
ottigerb replied on at Permalink Reply
ottigerb
Hmmm.... quick test was:

Warning: curl_setopt_array() [function.curl-setopt-array]: CURLOPT_FOLLOWLOCATION cannot be activated when safe_mode is enabled or an open_basedir is set in /data/vhosts/askwiki.ch/www/htdocs/packages/tws_box_grabber/libraries/phpQuery-onefile.php on line 4796

Thanks for your awesome support! :-)
firepixel replied on at Permalink Reply 1 Attachment
firepixel
OK have removed the line it doesn't like, here is updated version.
firepixel replied on at Permalink Best Answer Reply
firepixel
Did you manage to test the new version yet? If it works will update the marketplace version.

Thanks
ottigerb replied on at Permalink Reply
ottigerb
Firepixel, sorry for late reply!

That did the trick! Awesome! It just works as expected! Good job!
From my side: Update marketplace version!

Again - thanks & two thumbs up!
firepixel replied on at Permalink Reply
firepixel
Marketplace version now updated.

Thanks four your help, if you have a second please write me a review!
http://www.concrete5.org/marketplace/addons/box-grabber/reviews/#di...
ottigerb replied on at Permalink Reply
ottigerb
Done! :-)

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.