WordPress.org

Ready to get started?Download WordPress

Forums

YOURLS Link Creator
Too many URLS Too Fast Error Message Getting Written into DB (1 post)

  1. chuckingit
    Member
    Posted 1 year ago #

    Hi - i found a strange bug in that if i am updating my posts and getting YOURLS Shortlinks, apparently when the message appears "YOURLS: Your Own URL Shortnere Forbidden - Too many URLS added to fast. Slow down Please..." that message with html code gets written into the db in the field _yourls_url and there is no way to delete the link or update the link via WordPress ...

    below is the meta_value that was written into my db for one of my posts ... it happened in more than one post / page ...

    as fyi, i was working on a simple site with ten pages ... this site is a subsite on a multisite network and i had been using YOURLS 1.5.1 and your latest YOURLS Link Creator 1.09 ... after i activated your plugin, i then started to go into each page, force the YOURLS Shortlink, then save / update the page once the link was added ... i was cruising along and all of a sudden i got this wierd error and my screen changed colors in that the css and background blue dot image from the YOURLS Admin site got inserted into my WP Admin screen ...

    so i deactivated plugin, activated latter, tried again, rebuilt my WP database from backups, tried activating again and after several iterations, i used phpMyAdmin to actually see what i could find in the tables and that was when i saw the code below ... i should also mention that php was kicking of a ton of errors in both the wp-includes folder as well as the public www folder ... see below ...

    on a visual level, the site did not render correctly when viewing it via Firefox 20 in that the php warning was inserting itself before the html head tag (also below) ...

    so then i updated YOURLS to 1.6 and when i saw the error message still read YOURLS 1.5.1, that is what tipped me off to look into the WP DB tables ...

    once i deleted the rogue meta values and manually entered the shortlink, my site seemed to get back to normal ...

    accordingly, maybe my experience will be of value to somebody down the road and/or help to improve future versions of plugin ... or maybe this has nothing to do with plugin and is a YOURLS thing ..??.. cordially, chuck scott

    html code inserted into db ->

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    	<title>YOURLS &mdash; Your Own URL Shortener | http://pj2.com/</title>
    	<link rel="shortcut icon" href="http://pj2.com/images/favicon.gif" />
    	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    	<meta http-equiv="X-UA-Compatible" content="chrome=1" />
    	<meta name="author" content="Ozh RICHARD & Lester CHAN for http://yourls.org/" />
    	<meta name="generator" content="YOURLS 1.5.1" />
    	<meta name="description" content="Insert URL &laquo; YOURLS &raquo; Your Own URL Shortener' | http://pj2.com" />
    	<script src="http://pj2.com/js/jquery-1.6.1.min.js?v=1.5.1" type="text/javascript"></script>
    	<script src="http://pj2.com/js/common.js?v=1.5.1" type="text/javascript"></script>
    	<script src="http://pj2.com/js/jquery.notifybar.js?v=1.5.1" type="text/javascript"></script>
    	<link rel="stylesheet" href="http://pj2.com/css/style.css?v=1.5.1" type="text/css" media="screen" />
    				<link rel="stylesheet" href="http://pj2.com/css/tablesorter.css?v=1.5.1" type="text/css" media="screen" />
    		<script src="http://pj2.com/js/jquery.tablesorter.min.js?v=1.5.1" type="text/javascript"></script>
    				<script src="http://pj2.com/js/insert.js?v=1.5.1" type="text/javascript"></script>
    				<link rel="stylesheet" href="http://pj2.com/css/share.css?v=1.5.1" type="text/css" media="screen" />
    		<script src="http://pj2.com/js/share.js?v=1.5.1" type="text/javascript"></script>
    		<script src="http://pj2.com/js/jquery.zclip.min.js?v=1.5.1" type="text/javascript"></script>
    				<link rel="stylesheet" href="http://pj2.com/css/cal.css?v=1.5.1" type="text/css" media="screen" />
    		<script src="http://pj2.com/js/jquery.cal.js?v=1.5.1" type="text/javascript"></script>
    			<script type="text/javascript">
    	//<![CDATA[
    		var ajaxurl  = 'http://pj2.com/admin/admin-ajax.php';
    		var zclipurl = 'http://pj2.com/js/ZeroClipboard.swf';
    	//]]>
    	</script>
    	<style type="text/css">
    		body {background:#e3f3ff url(http://pj2.com/user/plugins/random-bg/img/bg_fuzzy_bits.png) repeat;}
    	</style>
    </head>
    <body class="index desktop">
    <div id="wrap">
    		<h1>
    		<a href="http://pj2.com/admin/index.php" title="YOURLS"><span>YOURLS</span>: <span>Y</span>our <span>O</span>wn <span>URL</span> <span>S</span>hortener<br/>
    		<img src="http://pj2.com/images/yourls-logo.png" alt="YOURLS" title="YOURLS" border="0" style="border: 0px;" /></a>
    	</h1>
    	<h2>Forbidden</h2><p>Too many URLs added too fast. Slow down please.</p>	</div> 	<div id="footer"><p>Powered by <a href="http://yourls.org/" title="YOURLS">YOURLS</a> v1.5.1 &ndash; 2 queries</p></div>
    			</body>
    	</html>

    example of php errors ->

    [16-Apr-2013 12:42:17] PHP Warning:  Header may not contain more than a single header, new line detected. in /home/cooltea/public_html/wp-includes/link-template.php on line 2406

    example of view source page via browser not rendering ->

    <br />
    <b>Warning</b>:  Header may not contain more than a single header, new line detected. in <b>/home/cooltea/public_html/wp-includes/link-template.php</b> on line <b>2406</b><br />
    <!DOCTYPE html>
    <html lang="en-US">
    <head>
    bla bla bla ...
    and then just before the close of the head it had this ->
    <link href="" rel="shortlink"><style type="text/css">.broken_link, a.broken_link {
    	text-decoration: line-through;
    }</style>
    </head>

    http://wordpress.org/extend/plugins/yourls-link-creator/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic