Forums

[resolved] [Plugin: PHP Code Widget] Parse error? (2 posts)

  1. RobertBasil
    Member
    Posted 2 years ago #

    I tried using the plug in and get the following error once I add my code to it:

    I've removed the domain name from the error for security reasons.

    Parse error: syntax error, unexpected $end in /nfs/c04/h03/mnt/65523/domains/domain-name-removed-for-security.com/html/wp-content/plugins/php-code-widget/execphp.php(43) : eval()'d code on line 17

    Here is the php code I am using.

    <?php if(get_plexus_information("photo")) {?>Your Ambassador:
    <img src="http://www.compu-sult.com/plexus/images/member_pics/<?php plexus_information("photo"); ?>" width="200">

    <?php } else { ?>

    Thanks!

    http://wordpress.org/extend/plugins/php-code-widget/

  2. Otto
    Tech Ninja
    Posted 2 years ago #

    Your code is incomplete. There should be something other after the else line.

Topic Closed

This topic has been closed to new replies.

About this Topic