ZenphotoCMS Forum
url file access is disabled error in zpmasonry theme - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: url file access is disabled error in zpmasonry theme (/thread-8866.html)



url file access is disabled error in zpmasonry theme - NaturalEnquirer - 2011-07-16

I believe this is a zpmasonry theme error as I do not get these errors when I use any of the other themes (default, zenpage, effervescence, etc.) I have clean install of ZP 1.404 and zpMasonry 1.41 with new database.

`
Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/content/n/a/t/naturalenq/html/testgallery/themes/zpmasonry_v1.4.1/functions.php on line 136

Warning: file_get_contents(http://tinyurl.com/api-create.php?url=http%3A%2F%2Fnatureinfocus.com%2Ftestgallery) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/content/n/a/t/naturalenq/html/testgallery/themes/zpmasonry_v1.4.1/functions.php on line 136

Warning: Cannot modify header information - headers already sent by (output started at /home/content/n/a/t/naturalenq/html/testgallery/themes/zpmasonry_v1.4.1/functions.php:136) in /home/content/n/a/t/naturalenq/html/testgallery/index.php on line 164

Warning: Cannot modify header information - headers already sent by (output started at /home/content/n/a/t/naturalenq/html/testgallery/themes/zpmasonry_v1.4.1/functions.php:136) in /home/content/n/a/t/naturalenq/html/testgallery/index.php on line 165

Warning: Cannot modify header information - headers already sent by (output started at /home/content/n/a/t/naturalenq/html/testgallery/themes/zpmasonry_v1.4.1/functions.php:136) in /home/content/n/a/t/naturalenq/html/testgallery/index.php on line 166
`




url file access is disabled error in zpmasonry theme - gjr - 2011-07-17

upgrade your zenphoto. zpMasonry 1.4.1 is for Zenphoto 1.4.1




url file access is disabled error in zpmasonry theme - daleestes - 2011-07-24

I'm getting the same error, and I do have current installations of both zenphoto @ 1.4.1.1 and zpmasonary @ 1.4.1. Is there a setting in the database or on the server that needs to be set?

Thanks.




url file access is disabled error in zpmasonry theme - sbillard - 2011-07-25

There is indeed a PHP setting for allow url fopen. That is what is preventing opening the offsite link via the filesystem open function. Not at all sure of why that theme is doing a file open on an URL, but [b]most[/b] hosting providers have that setting so that the open is not allowed.




url file access is disabled error in zpmasonry theme - gjr - 2011-07-25

This function is for users to tweet your pages.

To remove:
functions.php, comment out or delete (around line 136):
$twitterlink = file_get_contents("http://tinyurl.com/api-create.php?url=".$sociallink);

inc-menu.php, comment out or delete (around line 6):
">




url file access is disabled error in zpmasonry theme - acrylian - 2011-07-25

I think Twitter disabled this kind of access quite a while ago. You have to assign an application now to update a status. Btw, we have a twitter plugin..:-)




url file access is disabled error in zpmasonry theme - sbillard - 2011-07-25

Of course the plugin if for the SITE to tweet, not for a visitor to tweet the SITE page.

If all you are doing is putting a tweet button on the page it should be possible to do without the fopen(): https://twitter.com/goodies/tweetbutton




url file access is disabled error in zpmasonry theme - daleestes - 2011-07-27

Thanks all for the help, I made the changes the gjr indicated and all is well! Thanks again.




url file access is disabled error in zpmasonry theme - joho - 2012-02-23

This is also in inc-header.php (line 83)

Could we have an option in zpMasonry to disable the "Twitter handling"?