• Hello,

    I have 3 errors in the console for a single post while for the other posts or pages no problem:

    • Uncaught SyntaxError: Unexpected identifier ‘deadline’ (page title is “08 – L’échéance se rapproche“)
    • Strongetic Page Visits Counter Lite – PHP status = FALSE
    • page-visits-counter-lite-ajax.js?ver=1684859594:35 Uncaught ReferenceError: StrCPVisits_page_data is not defined

    I thought there was an accent problem in the title but no, because other post titles have an accent and no problem.
    I don’t have a cache plugin. If it was a server cache problem, the problem would be site-wide, right?

    Thanks

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Denis Boti?

    (@strongetic)

    Hello!

    Thank you for bringing this issue to my attention. I greatly appreciate your proactive approach in reporting it. Rest assured, I will thoroughly investigate the problem over the weekend and work on finding a resolution for you. I understand the importance of resolving this promptly and will keep you informed of any progress or updates. If you have any additional information or specific details related to the issue, please feel free to share them with me. Thank you once again for your patience, and I’ll be in touch soon with further information.

    Best regards,

    Denis Boti?


    Plugin Author Denis Boti?

    (@strongetic)

    Hi there!
    I appreciate your patience.

    I have thoroughly tested the issue on my test site.
    I published the page named “08 – L’échéance se rapproche“ and I’m glad to inform you that everything is working fine.

    I have checked the Console, and it shows that both the JavaScript and PHP statuses are “OK.”

    – JS status = OK
    – PHP status = OK

    These statuses remain unaffected whether I am logged in or logged out.

    Additionally, I have examined the debug.log file, and there are no errors or warnings present.

    Have you checked your debug.log file for any errors related to the issue?

    When troubleshooting WordPress issues, it is generally recommended to follow these steps:

    1. Check the WordPress theme
    Switch to a different (default) WordPress theme and check for any
    bugs or issues. If a bug or issue is not present when another theme
    is active, it means that the bug or issue is with the WordPress theme.

    (Check the console and debug.log)

    2. Check plugins
    Disable all plugins and then enable only the plugin that seems to be causing the problem. Check for any bugs or issues with this specific plugin enabled.

    (Check the console and debug.log)

    If there are no bugs or issues when only my plugin is enabled, try enabling the other plugins one by one. Every time check for the issue.

    (Check the console and debug.log)

    This will help identify if any of the other plugins are causing the problem.

    ====

    I hope this explanation clarifies the steps I have taken to investigate the reported issue and provides you with valuable insights on how to proceed with debugging the problem.

    Please let me know if there is anything else I can assist you with.

    Thread Starter Jonathan Webpixelia

    (@marocweb)

    Hi,

    Thank you for your reply.
    I have the default theme installed and enabled.
    Nothing in the log file.
    I still get an error in the console only for this page:
    The error is on the ‘title’ line in the console: Error: Unexpected identifier ‘deadline’; this is due to the apostrophe because I change the title to “10 – The deadline is getting closer” (without the apostrophe) everything works perfectly.

    Thread Starter Jonathan Webpixelia

    (@marocweb)

    I changed the title while waiting for a solution to be found, hoping there is a fix. It’s ok with the new title without apostrophe: https://hijrakeys-danger.com/2023/06/lecheance-se-rapproche/

    Plugin Author Denis Boti?

    (@strongetic)

    I’ve just tested it on several different PHP versions and I cannot recreate the issue.

    Can you please tell me what is your WordPress version and PHP version?

    Please try to:
    – Switch the WP theme and check for errors.
    – Disable all other plugins and check for errors.
    – Uninstall my plugin and install it again.

    After you do all of that, we can continue this conversation.
    You need to help me recreate the issue so I can fix it.
    At the moment I cannot recreate it. Everything is working fine on my side.
    If you have any errors in debug.log please make a screenshot and contact me through strongetic web development professional website.

    • This reply was modified 1 year, 4 months ago by Denis Boti?.
    • This reply was modified 1 year, 4 months ago by Denis Boti?.
    • This reply was modified 1 year, 4 months ago by Denis Boti?.
    • This reply was modified 1 year, 4 months ago by Denis Boti?.
    • This reply was modified 1 year, 4 months ago by Denis Boti?.
    • This reply was modified 1 year, 4 months ago by Denis Boti?.
    • This reply was modified 1 year, 4 months ago by Denis Boti?.
    • This reply was modified 1 year, 4 months ago by Denis Boti?.
    Thread Starter Jonathan Webpixelia

    (@marocweb)

    My PHP version is 8.0.28.
    I created a new article “L’échelle est là”, so with an apostrophe and the problem reappears.
    As soon as I have time, I create a staging environment, clone of the current site, and I test what you listed. I will come back to you as soon as I have carried out the tests. The site being in production I cannot do the tests directly.
    Thanks

    Plugin Author Denis Boti?

    (@strongetic)

    I’ve tested the PHP version 8.0 and it is not casue of the problem.
    Aside of that, please make sure that you use the latest version of my plugin.

    Hi,

    I am also facing the same issue.

    If my single post title contains an apostrophe ‘ then the counter widget shows N/A. For the rest, it is working fine.

    For Example in the following post tile I am getting N/A.

    Freshers’ Day 23 – Bollywood Eve

    Please update if any solution.

    I am on latest WordPress Version with Latest Elementor, my single post page is build with Elementor. PHP is 8.1.

    Thanks.

    Plugin Author Denis Boti?

    (@strongetic)

    Hi,

    Thank you for bringing this to my attention. I appreciate your efforts in testing and providing additional details. It seems that the issue might be related to the user’s login status.

    I have replicated your test scenario by publishing a new post with the title “Freshers’ Day 23 – Bollywood Eve,” and the counter is functioning as expected on my end, displaying the correct number of visits.

    Based on your observation, it appears that the counter shows “N/A” only when the user is logged in and visiting the post.

    In an incognito browser window (when logged out), the counter works properly, displaying the correct number of visits.

    This suggests that the issue may be specific to the user’s login status.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Single post error’ is closed to new replies.