Topic: [Fixed] URL Shortening Error

Hi, I am trying to change the URL shortening service away from TinyURL while using this script. It is working ok except the twitter icon at the bottom stops showing up and I am getting some type of error in its place that is huge and is going way down the page.

Do I need to do something special other than modifying the API info in the script files?

Thanks in advance!

Thumbs up

Re: [Fixed] URL Shortening Error

Please post the error. This might give an insight.
And no I think you only need to modify engine.php and config.php.

Thumbs up

Re: [Fixed] URL Shortening Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@****.net and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

" id="twitter" target="_blank">

The little links are generated, everything goes through fine, except for the twitter icon, which is replaced with this error message

Thumbs up

Re: [Fixed] URL Shortening Error

Weird. What url service did you use?

rodolfoberrios.com | PLEASE use Tech Support forums to ask for support!

Re: [Fixed] URL Shortening Error

I am trying to use http://tllg.net to shorten the URLs

Thumbs up

Re: [Fixed] URL Shortening Error

nothing?

Thumbs up

Re: [Fixed] URL Shortening Error

Are you useing the api right?
What url did you use for $tiny_api ?

Thumbs up

Re: [Fixed] URL Shortening Error

gamerlv wrote:

Are you useing the api right?
What url did you use for $tiny_api ?

I am pretty sure I am using it correctly, it makes the URLs (I also run tllg.net so I can see what URLs have been made) but just that twitter logo flips out and gives that error. API I am using though is: http://tllg.net/?api=tllgapi&u=

Thumbs up

Re: [Fixed] URL Shortening Error

If you want you can use my API. I'm using it for my site and it works great.

Thumbs up

Re: [Fixed] URL Shortening Error

Try this and see if it works..
open engine.php

find:

$tiny = $tiny_api.$url;

after add (new line):

        $qfix = $tiny_api;
        if ($tiny != $qfix) {

find:

curl_close($chtny);

after add (new line):

}

Let me know if that works.

Thumbs up

Re: [Fixed] URL Shortening Error

uploadpic wrote:

Try this and see if it works..
open engine.php

find:

$tiny = $tiny_api.$url;

after add (new line):

        $qfix = $tiny_api;
        if ($tiny != $qfix) {

find:

curl_close($chtny);

after add (new line):

}

Let me know if that works.

I tried adding that code and it seems it did not have any luck... here is a screenshot of the error I am getting
http://i.tllg.net/img/errorjgj.jpg

As you can see the error just seems to take the place of what is usually the twitter icon sad and I had my mouse hovering over the error (which acts like a link) so you could see what it is trying to link to as well.

Last edited by andrewsayshello (2010-04-08 10:43:31)

Thumbs up

Re: [Fixed] URL Shortening Error

Do you have curl installed? It seems to be hanging on that. Al through it seems to work as you can get the url in that box you have added in your screenshot.

Lastly if curl isn't the culprit, check your error logs around the time you loaded this page. They usually hold more info.

Thumbs up

Re: [Fixed] URL Shortening Error

How do I see if curl is installed?

Thumbs up

Re: [Fixed] URL Shortening Error

Put this in a file called info.php

<?php
 phpinfo(INFO_MODULES);
 ?>

And upload it to your server. If curl is in the list it's loaded and installed.
Remember to remove the file later since it can sow detail info on how your server is setup.

Thumbs up

Re: [Fixed] URL Shortening Error

It tells me cURL is enabled.

Thumbs up