• Had the developer do some checking since on his plugin since it seemed at the time to be the culprit and it was narrowed down to the theme. It only seems to happen when using a Child theme of Customizr.

    Below is what the developer he came up with. Any help is much appreciated

    “Hi Bart,

    I have logged in and switched to the standard TwentySixteen theme, which resolved the error that was being produced (I have re-activated your previous theme).

    This confirms that the theme is producing the issue you are experiencing.

    Please contact your theme developer explaining that erroneous character is most likely being output in one of the PHP files.

    We would really like to assist you with resolving this issue, but this is a theme related error.

    I hope this helps?

    [ Signature moderated ]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter BARTNKCMO

    (@bartnkcmo)

    UPDATE: This was sent to me via the plugin developer for a better reference

    “Hi Bart,

    Only a pleasure, we are always happy to help.

    To explain this to the developer you can reference the article I sent you the link to ( https://stackoverflow.com/questions/23511275/json-response-format-error-red-dot-bullet-before-response ), as well as mention that one of the theme files is outputting non-printable special unicode character, this is causing other on-site data to be altered (causes breaks in the code).

    I hope this helps?

    [ Signature moderated ]

    Flagged to Developers

    Thread Starter BARTNKCMO

    (@bartnkcmo)

    Checking in to see if there is any update as to the erroneous error issue causing the syntax error?

    Thread Starter BARTNKCMO

    (@bartnkcmo)

    Has there been any update as to the status of what is causing the error by the theme developer?

    Thread Starter BARTNKCMO

    (@bartnkcmo)

    Helloooooo ????????????

    Patience is a virtue. Your issue is recorded and when there is a fix you’ll be informed.

    Thread Starter BARTNKCMO

    (@bartnkcmo)

    I’ll make sure to explain that to my customers also

    Hello I’m sorry you’re having this problem.
    Not able to reproduce this issue with the main theme, or with the child-theme (provided on presscustomizr.com).

    You say the issue occurs only with the child-theme right?
    So probably the issue is in *your own* child-theme.

    Looking at the link you provided about the “syntax error” (https://stackoverflow.com/questions/23511275/json-response-format-error-red-dot-bullet-before-response) you can see that the most reliable reason is (might be):

    It was probably a file encoding problem caused by editing the files on the remote end with notepad. I’ve re-uploaded the files from the localhost and it was solved.

    Windows Notepad adds BOM information to UTF-8 files (i.e. FFFE or FEFF at the beginning of the file) which would explain this behavior. In Notepad++ for example you can prevent UTF-8 from including BOM information using the “Format” menu

    and so on.

    I searched files presenting BOM in the theme and couldn’t find them.
    (in a linux shell, in the theme root dir: grep -rlI $'\xEF\xBB\xBF' . )
    Though I downloaded *your* child-theme style.css
    (https://www.eatgafftaperadio.com/wp-content/themes/customizr-child/style.css)
    and found that it actually has that BOM. I can only wonder that your child-theme functions.php has that too.
    Did you edit those files with notepad++?
    Probably that editing introduced the issue.

    You might try building a new “vanilla” child-theme and see if it still happens (or download the provided child-theme again).
    And if you want to edit its files be sure that you’re encoding them with utf8 without BOM (always in the link you provided there’s a way to do that if you’re using notepad++).

    As per wp.org forum rules direct contacts are not allowed as the themes/plugins hosted, and the forum itself, are free, so the presscustomizr team cannot do much more to debug your particular issue, which as you said doesn’t happen with the main theme.

    Hope this helps, and you can solve it.

    Best regards.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Erroneous Character causing syntax unexpected token error’ is closed to new replies.