Facebook  Twitter 

SMFHacks.com

+- +-

SMFHacks.com

+- User Information

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

+- Forum Stats

Members
Total Members: 11897
Latest: NCorleone1
New This Month: 15
New This Week: 3
New Today: 0
Stats
Total Posts: 37804
Total Topics: 6656
Most Online Today: 92
Most Online Ever: 2482
(April 09, 2011, 06:02:45 pm)
Users Online
Members: 0
Guests: 71
Total: 71

Author Topic: tiny url error  (Read 177 times)

0 Members and 1 Guest are viewing this topic.

Offline Doughboy99

  • SMF Gallery Pro Customer
  • Full Member
  • *****
  • Posts: 111
    • View Profile
tiny url error
« on: March 16, 2017, 03: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: 13994
    • View Profile
Re: tiny url error
« Reply #1 on: March 16, 2017, 03: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
4792 Views
Last post October 30, 2007, 07:03:03 am
by SMFHacks
0 Replies
2363 Views
Last post January 10, 2009, 02:40:31 pm
by fussilet
1 Replies
2307 Views
Last post August 23, 2009, 06:31:56 pm
by SMFHacks
1 Replies
1153 Views
Last post June 15, 2012, 07:03:46 pm
by SMFHacks
1 Replies
1185 Views
Last post June 29, 2012, 08:52:25 am
by SMFHacks

+- Recent Topics

Aprove link by Darkshadow
March 24, 2017, 06:28:26 pm

Bug in saving settings by Darkshadow
March 24, 2017, 06:26:45 pm

Extreme coding help by SMFHacks
March 23, 2017, 07:37:58 pm

Permissions system by Darkshadow
March 23, 2017, 09:26:41 am

Downloads folderm by davejo
March 21, 2017, 11:33:14 am

use on a sandbox pre-production? by drewactual
March 19, 2017, 10:22:13 pm

Delete ratings from profile? by yameth
March 17, 2017, 03:32:17 am

tiny url error by SMFHacks
March 16, 2017, 03:49:25 pm

Daughter menus by KevinK
March 16, 2017, 04:02:43 am

[Mod] Tagging System by Web Presence Consulting
March 15, 2017, 08:50:21 pm

Powered by EzPortal