Member
Member
NaturalEnquirer   16-07-2011, 21:44
#1

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
`

Member
Member
gjr   17-07-2011, 03:48
#2

upgrade your zenphoto. zpMasonry 1.4.1 is for Zenphoto 1.4.1

Member
Member
daleestes   24-07-2011, 21:10
#3

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.

Member
Member
sbillard   25-07-2011, 00:16
#4

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.

Member
Member
gjr   25-07-2011, 13:02
#5

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):
">

Administrator
Administrator
acrylian   25-07-2011, 13:38
#6

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..:-)

Member
Member
sbillard   25-07-2011, 15:17
#7

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

Member
Member
daleestes   27-07-2011, 01:22
#8

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

Member
Member
joho   23-02-2012, 10:27
#9

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

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

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.