Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11912
Latest: tom789
New This Month: 13
New This Week: 1
New Today: 0
Stats
Total Posts: 37890
Total Topics: 6667
Most Online Today: 80
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 61
Total: 61

Author Topic: tiny url error  (Read 355 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: 14029
    • 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
4847 Views
Last post October 30, 2007, 08:03:03 am
by SMFHacks
0 Replies
2397 Views
Last post January 10, 2009, 02:40:31 pm
by fussilet
1 Replies
2353 Views
Last post August 23, 2009, 07:31:56 pm
by SMFHacks
1 Replies
1192 Views
Last post June 15, 2012, 08:03:46 pm
by SMFHacks
1 Replies
1221 Views
Last post June 29, 2012, 09:52:25 am
by SMFHacks

+- Recent Topics

RSS Feed killed my forum by hippieboy123
April 18, 2017, 07:39:26 am

Is there a converter than converts all files found in topics of a specific board by SMFHacks
April 13, 2017, 02:46:18 pm

Sidebar Image width by hippieboy123
April 12, 2017, 01:32:00 pm

I run a Custom Theme and have many Test Failed - What to do? by SMFHacks
April 11, 2017, 05:12:15 pm

Daughter menus by Labradoodle-360
April 08, 2017, 05:37:22 pm

Lost my copyright removal when I converted forum to SSL by Nova
April 08, 2017, 01:19:50 pm

With .htaccess, how do I redirect an action to another action by shuban
April 06, 2017, 11:45:50 pm

Newsletter Pro errors in log by SMFHacks
April 03, 2017, 04:54:40 pm

Random Image Block code by landyvlad
March 30, 2017, 02:54:32 am

Upgrade Account - Download SMF Gallery Pro by mrsclaudio
March 29, 2017, 10:14:11 am

Powered by EzPortal