• I have a Error Message after Install:

    Parse error: syntax error, unexpected ‘&’, expecting T_VARIABLE or ‘$’ in /var/www/xxx/xxx/wp-content/plugins/simple-portfolio/simple-portfolio.php on line 237

Viewing 5 replies - 1 through 5 (of 5 total)
  • I’m getting the same. This looks like a great plug-in and I’m quite anxious to install it as it will do everything that I need it to do.

    If it helps, I’m running a network of WordPress sites (the multisite feature). I dont know if this has anything to do with the error?

    I know they posted it above around 4 months ago, but i think i founded a sort of solution.. so for who are also stuck and get the same message above try this below, any way it works fine for me 🙂

    It needs php 5 so add this rule in your, .htaccess
    AddHandler x-httpd-php5 .php

    Having the same problem.

    mnrtjeR, I don’t understand which part to add. Do I add:

    .htaccess
    AddHandler x-httpd-php5 .php

    to line 237?

    No, you must add the line:

    AddHandler x-httpd-php5 .php

    in your .htaccess file. You will find the .htaccess file in the root of your website.

    I found this solution worked for me.
    on line 237, I replaced
    ‘foreach ($result as &$item):’
    with
    ‘foreach ($result as $item):’
    (removing the ‘&’)

    I believe it would need changing on more than one line, so do a search and replace on this page…
    /wp-content/plugins/simple-portfolio/simple-portfolio.php

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘[Plugin: Simple Portfolio] Fatal Error’ is closed to new replies.