url file access is disabled error in zpmasonry theme

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://natureinfocus.com/testgallery) [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
`

Comments

  • gjr Member
    upgrade your zenphoto. zpMasonry 1.4.1 is for Zenphoto 1.4.1
  • 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.
  • 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 most hosting providers have that setting so that the open is not allowed.
  • gjr Member
    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):
    `
    <?php echo $twitterlink; ?>" target="_blank" class="t" title="<?php echo gettext('Spread the word on Twitter'); ?>">
    `
  • acrylian Administrator, Developer
    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..:-)
  • 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
  • Thanks all for the help, I made the changes the gjr indicated and all is well! Thanks again.
  • This is also in inc-header.php (line 83)

    Could we have an option in zpMasonry to disable the "Twitter handling"?
Sign In or Register to comment.