• I’m trying to activate the “Get Links List Fixed” plugin. After I upload the file to my server and activate it I get the following error on every page of my blog: “Parse error: parse error, unexpected T_VARIABLE in …/wordpress/wp-content/plugins/get-links.php on line 30”
    Can anyone help?

Viewing 9 replies - 1 through 9 (of 9 total)
  • I can ‘t see anything wrong with the code in the plugin as downloaded from http://wiki.wordpress.org/GetLinksListFixed?PHPSESSID=ef9c277d284172408164a8b89411be4d
    In the plugin, line 30 seems to equate to:
    global $tablelinkcategories, $tablelinks, $wpdb;
    Can you confirm that this is the line at line 30 in your file?
    It might also help if you pasted a couple of lines of the plugin from above line 30 and below line 30 in your implementation of the plugin, just to see if anything jumps out.
    Much warmth,
    planetthoughtful

    Thread Starter Anonymous

    Thanks for the response…Just to be sure I downloaded the code again and I still get the same error. Here’s the code:

    25 * Parameters:
    26 *   order (default 'name')  - Sort link categories by 'name' or 'id'
    27 *   hide_if_empty (default true)  - Supress listing empty link categories
    28 */
    29 function dtw_get_links_list($order = 'name', $hide_if_empty = 'obsolete') {
    30         global $tablelinkcategories, $tablelinks, $wpdb;
    31
    32         $order = strtolower($order);
    33
    34         // Handle link category sorting
    35         if (substr($order,0,1) == '_') {

    Thread Starter Anonymous

    Anyone have any idea?

    Thread Starter Anonymous

    Has anyone found a way to fix this? I’m having the same problem…

    Thread Starter Anonymous

    Have you contacted the plugin author?

    Thread Starter Anonymous

    I tried, but I’m not sure how to get ahold of his email address…

    AACK! Are those numbers actualy in your code?!?!?! They aren’t supposed to be there. Try removing them and re-activating the plugin.
    TG

    Thread Starter Anonymous

    No, they’re not there, I put them in to show what line everything’s on. Thanks though, I wish it was that simple!

    I meant to say that the problem the plugin is intended to solve was addressed in issue 169 and the CVS change. The problem in this support thread is not.
    With Bryce’s help, I was able to determine that the indentation was being converted to \xCA (E-circumflex) characters instead of spaces on OS X.
    In order to reproduce this, I copied the text from Safari to TextEdit, set it to a Text file and saved it. In the Terminal I did xxd file.txt (hexdump) and it showed the odd characters.
    I’m investigating a work around.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Get Links List Fixed plugin’ is closed to new replies.