Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 12000
Latest: Suz
New This Month: 12
New This Week: 1
New Today: 0
Stats
Total Posts: 38201
Total Topics: 6731
Most Online Today: 87
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 46
Total: 46

Author Topic: tiny url error  (Read 678 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: 14158
    • 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 https://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
5067 Views
Last post October 30, 2007, 08:03:03 am
by SMFHacks
0 Replies
2546 Views
Last post January 10, 2009, 02:40:31 pm
by fussilet
1 Replies
2485 Views
Last post August 23, 2009, 07:31:56 pm
by SMFHacks
1 Replies
1340 Views
Last post June 15, 2012, 08:03:46 pm
by SMFHacks
1 Replies
1354 Views
Last post June 29, 2012, 09:52:25 am
by SMFHacks

+- Recent Topics

Purchase Notification Email to Store Admins by scso1502
September 19, 2017, 06:00:12 pm

Can't save ad code and errors in log. by SMFHacks
September 15, 2017, 12:40:15 pm

After migrating from http to https I started getting these errors by ApplianceJunk
September 14, 2017, 10:58:38 pm

SMF Gallery and https green padlock? by ApplianceJunk
September 14, 2017, 10:02:46 pm

AudioVideoEmbedder: attached files by SMFHacks
September 14, 2017, 10:58:51 am

Contact Page Version 4.0 by Binkie
September 10, 2017, 11:26:19 am

Can Generated Threads Display The Thumbnail Instead Of The Full Size Image? by Sockratease
September 09, 2017, 06:40:12 pm

Double purchase membergroup fix by SMFHacks
September 09, 2017, 12:30:06 pm

How do I prevent "moved" topic notifications on bulk movement of topics? by shuban
September 09, 2017, 11:25:25 am

[Theme] Dark Default Theme by fussilet
September 06, 2017, 06:49:06 pm

Powered by EzPortal