Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 11969
Latest: willietern
New This Month: 13
New This Week: 3
New Today: 2
Stats
Total Posts: 38048
Total Topics: 6696
Most Online Today: 66
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 65
Total: 65

Author Topic: tiny url error  (Read 588 times)

0 Members and 1 Guest are viewing this topic.

Offline Doughboy99

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 113
    • View Profile
tiny url error
« on: March 16, 2017, 04:41:19 pm »
Hello

I'm getting errors showing the log like the following

http://www.xxxxx.co.uk/forum/index.php?action=gallery;sa=view;id=4617
2: file_get_contents(http://tinyurl.com/api-create.php?url=http://www.xxxxx.co.uk/forum/index.php?action=gallery;sa=view;id=4617): failed to open stream: HTTP request failed! HTTP/1.1 520 Origin Error
File: /home/xxxx/public_html/forum/Sources/Gallery2.php
Line: 12325

I'm using SMF 2.0.13 and Gallery Pro 7.2.2.

I can access the topics showng in the errors from a browser without generating an error.

Any idea what might be causing this?

Thanks

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 14096
    • View Profile
Re: tiny url error
« Reply #1 on: March 16, 2017, 04:49:25 pm »
Might be hosting/php related issue
change this code in sources/gallery2.php
Code: [Select]
function gallery_getTinyUrl($url)
{


if (function_exists('file_get_contents'))
{
$tinyurl = file_get_contents("http://tinyurl.com/api-create.php?url=".$url);
return $tinyurl;
}
else
return $url;
}
Change to
Code: [Select]
function gallery_getTinyUrl($url)
{


return $url;
}
Get your Forum Ranked! at http://www.forumrankings.net - find out how your forum compares with others! Also contests/promotions for verified sites.

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
5012 Views
Last post October 30, 2007, 08:03:03 am
by SMFHacks
0 Replies
2512 Views
Last post January 10, 2009, 02:40:31 pm
by fussilet
1 Replies
2439 Views
Last post August 23, 2009, 07:31:56 pm
by SMFHacks
1 Replies
1296 Views
Last post June 15, 2012, 08:03:46 pm
by SMFHacks
1 Replies
1307 Views
Last post June 29, 2012, 09:52:25 am
by SMFHacks

+- Recent Topics

Nochex by SMFHacks
July 19, 2017, 02:57:10 pm

using Simple Audio Video Embedder and would like to order a custom code by Beowulf1976
July 12, 2017, 11:44:20 pm

Random Image Block code by donk
July 12, 2017, 03:45:34 pm

Enotify Copyright Removal Problem by Niteprowler
July 11, 2017, 09:18:39 am

NEW TAB ON CHECKOUT by orville
July 10, 2017, 11:29:27 am

errors after installation by donk
July 09, 2017, 04:00:34 am

Images Uploading, but Not Displaying by SMFHacks
July 06, 2017, 05:02:31 pm

Question aboud SA Facebook Integration by SMFHacks
July 05, 2017, 09:46:41 pm

Problem Saving Pics by SMFHacks
July 04, 2017, 11:14:07 am

Adding news topic by RC Storick
July 01, 2017, 10:49:07 am

Powered by EzPortal