Forums

How solve "Parse error: syntax error...", please help. (6 posts)

  1. kavirdarkavir
    Member
    Posted 1 year ago #

    hi friends. I tried to install a wordpress plugin on my website, but I got blew error:

    Parse error: syntax error, unexpected '}' in C:\xampp\htdocs\wordpress\wp-content\plugins\wpshop\main.php on line 1014

    I found the line 1014 in main.php:

    1010 });
    1011 }
    1012 </script>
    1013 <?php
    1014 }
    1015 else {
    1016 _e("No records found !","wps-lang");

    as I don't know anything about php codes, I really will appreciate any help, I really need it instantly.

    Thank you

  2. hedu64
    Member
    Posted 1 year ago #

    It seems there is no closing } in your code. Try to add that in line 1017. But one would need to see if that's all, you just show a small part of the code, not enough to give sufficient help.

    If that's a plugin which was created by someone else, then the developer is needed to fix that asap. Send this guy an email.

  3. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    Delete the wp-content\plugins\wpshop folder.

  4. kavirdarkavir
    Member
    Posted 1 year ago #

    the problem is that I can not activate the plugin because the mentioned error.

    I uploaded the main.php file to check it accurately.

    http://www.up98.org/upload/server1/02/e/97x4j7fi9a5olvxs6q3.zip

    dudes please help, waiting for you response.

    Thank you

  5. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    the plugin seems to got updated yesterday - possibly with the error in the code(?); best try to contact the plugin author directly.

    or try and use a later version http://wordpress.org/extend/plugins/wpshop/download/

    if you want to share the code of main.php, please use the http://pastebin.com/ (paste your code into the pastebin, submit, and post the link to it here)

  6. kavirdarkavir
    Member
    Posted 1 year ago #

    dear 'alchymyth' thanks for your advice. but this plugin that I'm using has edited and translated by another team, so I tried to contact with them but I didn't received any response.

    anyway I pasted main.php codes in blew link as everyone can access it easily:

    http://pastebin.com/3eUsddGV

    waiting for your help.

    thanks

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags