• Resolved the_owl

    (@the_owl)


    Hi there, It appears this plugin no longer works with the code written since my host updated the PHP version. I had the old plugin insert-php. Upgraded to this version to try and fix and its still broke.
    Heres the error it throws:
    PHP Parse error: syntax error, unexpected 'align' (T_STRING), expecting ',' or ';' in /www/wp-content/plugins/insert-php/insert_php.php(125) : eval()'d code on line 34

    Here is the basic contents:

    [insert_php]
    $con = mysql_connect("127.0.0.1","xxxxxxx","xxxxxxxxxxxxxxxxxxxxx");
    if (!$con) {
    die("Can not connect:" . mysql_error());
    }
    
    mysql_select_db("dbXXXXXXXXX7",$con);
    $sql = 'SELECT * FROM EmployeeTable where PrimaryCampusPerson="Yes" order by SchoolDistrict, Site';
    
    $myData = mysql_query($sql,$con);
    
    echo "
    
    ";
    while($record = mysql_fetch_array($myData)){
    echo "
    
    ";
    echo "";
    echo "
    
    ";
    echo "
    
    ";
    echo "
    
    ";
    }
    echo "
    
    Campus	District	Program Manager
    " . "" . $record['Site'] . "" . "
    " . $record['WorkAddress'] . "
    " . $record['WorkCity'] . $record['WorkState'] . $record['WorkZip'] ."
    " . $record['SchoolMainPhone'] ."	" . $record['SchoolDistrict'] . "	" . "" . $record['LastName'] . ", " . $record['FirstName'] . "" . "
    " . $record['WorkCISPhone'] ."
    " . "". $record['Email'] . "" ."
    ";
    
    [/insert_php]

    Any advice on fixing this? I didnt write it. thanks

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi, Owl

    Excuse me. Maybe you also use other snippets on this page or snippets with “everywhere” scope? I do not see in the code the word “align” specified in php error.

    Best regards, Kirill
    Webcraftic team

    Thread Starter the_owl

    (@the_owl)

    Hi there, there isnt anything else on the wp page. I dont have any other php plugins. This isnt a snippet, its code on the page with shortcode [insert_php]

    Plugin Author Temyk

    (@webtemyk)

    Hello, @the_owl!

    Is the problem still relevant?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin not working after PHP Update’ is closed to new replies.