SyntaxError:JSON Parse error: Unrecognized token '

After registration when new member logs in for the first time the page never loads completely. The error console says:

Invalid CSS property declaration at: ; smregistration:684
SyntaxError:JSON Parse error: Unrecognized token '<'

Can you tell me please how I fix this.

Support Access is granted.
Thank you.

  • Kasia Swiderska
    • Support nomad

    Hello Mary,

    It looks like this is issue with your login form plugin - other user here is having the same problem https://wordpress.org/support/topic/have-to-refresh-after-login/ - possible cause is cache plugin.
    As author of the plugin is not responding to those support threads it looks like plugin is abandoned (and there was not updated in 11 months).
    There are other plugins for sidebar login you can test https://wordpress.org/plugins/login-form/
    https://wordpress.org/plugins/login-with-ajax/

    kind regards,
    Kasia

  • Mary
    • Wisp of the WP Loop

    Thank you Kasia. I changed login plugin to login with ajax and am still having the same problem with the same error. I am also getting the following errors.

    PHP Notice: Trying to get property of non-object in /plugins/directory/core/core.php on line 1375

    PHP Warning: Cannot modify header information - headers already sent by (output started at /plugins/directory/core/core.php:1375) in /wp-includes/rest-api/class-wp-rest-server.php on line 1196

    PHP Notice: Trying to get property of non-object in /wp-includes/query.php on line 4698

  • Rupok
    • Support Ninja

    Hi Mary,

    Thanks for copy-pasting the exact errors. From given errors, it seems like none of them are process-blocking issues and that's why they are being shown as "PHP Notice" and "PHP Warning" instead of any fatal error.

    However, these can be removed by turning off debug display. To do so, can you please login to your server with any FTP program and open your "wp-config.php" file and look for the following line?
    define( 'WP_DEBUG_DISPLAY', true );
    If you find that line, please replace that with the following line:
    define( 'WP_DEBUG_DISPLAY', false );
    This will remove those errors I believe. If it doesn't, or if you don't find that line in your "wp-config.php" file, please let us know. We will be glad to investigate further.

    I'm looking forward to hearing from you and resolve this issue as soon as possible.

    Have a nice day. Cheers!
    Rupok

  • Nithin
    • Support Wizard

    Hi Mary,

    Hope you are doing good today. :slight_smile:

    I created a test user wpmudev, and I wasn't able to replicate these errors in your website, nor in the web console when I tried to log in. Do you get thes errors in your debug.log files? If yes, could you please update us with the latest debug.log file. Please advice if I'm missing something, so that we could give a closer look.

    Regarding headers already sent notice, it could be related to have spaces, and new lines, before and after of opening, and closing tags of PHP in your wp-config.php. For more info please check this link:
    https://codex.wordpress.org/FAQ_Troubleshooting#How_do_I_solve_the_Headers_already_sent_warning_problem.3F

    Kind Regards,
    Nithin

  • Mary
    • Wisp of the WP Loop

    Thank you for going to that trouble Nithin.

    You don't actually have to login to the site. You just have to go to any of the pages and check the Javascript Console. Please see screenshot.

    Root error log and wp-admin error log say nothing.

  • Nithin
    • Support Wizard

    Hi Mary,

    Hope you are doing good today. :slight_smile:

    I checked your website, and I'm not sure what's happening at the moment, it seems like you are moving your server?

    The support access is disabled at the moment, and neither I was able to notice any error log in the console. Please let us know once you have finished working with your website, so that we could give a closer look. Have a nice day. :slight_smile:

    Kind Regards,
    Nithin

  • Mary
    • Wisp of the WP Loop

    Yes I am Nithin. It was a sudden decision brought on by a very helpful WPMU member, Jaxon, who offered great advice on another ticket. We got talking, had lots in common, and he mentioned his server. When I checked it out I was so impressed that I made an immediate decision to switch.

    Recommending him highly at http://www.webhosting4business.com

    I am in the process of moving right now so will cancel all tickets.

    Thank you again.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.