Title: Single post error
Last modified: June 26, 2023

---

# Single post error

 *  Resolved [marocweb](https://wordpress.org/support/users/marocweb/)
 * (@marocweb)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/single-post-error-2/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fsingle-post-error-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Denis Botić](https://wordpress.org/support/users/strongetic/)
 * (@strongetic)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/single-post-error-2/#post-16849384)
 * 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ć](https://wordpress.org/support/users/strongetic/)
 * (@strongetic)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/single-post-error-2/#post-16861903)
 * 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 = OKThese 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 anybugs or issues. If a bug
   or issue is not present when another themeis 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 [marocweb](https://wordpress.org/support/users/marocweb/)
 * (@marocweb)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/single-post-error-2/#post-16863000)
 * 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 [marocweb](https://wordpress.org/support/users/marocweb/)
 * (@marocweb)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/single-post-error-2/#post-16863009)
 * 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/](https://hijrakeys-danger.com/2023/06/lecheance-se-rapproche/)
 *  Plugin Author [Denis Botić](https://wordpress.org/support/users/strongetic/)
 * (@strongetic)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/single-post-error-2/#post-16863302)
 * 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 ](https://strongetic.com/)web development 
   professional website.[
    -  This reply was modified 2 years, 11 months ago by [Denis Botić](https://wordpress.org/support/users/strongetic/).
    -  This reply was modified 2 years, 11 months ago by [Denis Botić](https://wordpress.org/support/users/strongetic/).
    -  This reply was modified 2 years, 11 months ago by [Denis Botić](https://wordpress.org/support/users/strongetic/).
    -  This reply was modified 2 years, 11 months ago by [Denis Botić](https://wordpress.org/support/users/strongetic/).
    -  This reply was modified 2 years, 11 months ago by [Denis Botić](https://wordpress.org/support/users/strongetic/).
    -  This reply was modified 2 years, 11 months ago by [Denis Botić](https://wordpress.org/support/users/strongetic/).
    -  This reply was modified 2 years, 11 months ago by [Denis Botić](https://wordpress.org/support/users/strongetic/).
    -  This reply was modified 2 years, 11 months ago by [Denis Botić](https://wordpress.org/support/users/strongetic/).
 *  Thread Starter [marocweb](https://wordpress.org/support/users/marocweb/)
 * (@marocweb)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/single-post-error-2/#post-16863379)
 * 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ć](https://wordpress.org/support/users/strongetic/)
 * (@strongetic)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/single-post-error-2/#post-16863858)
 * 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.
 *  [wastedolphine](https://wordpress.org/support/users/wastedolphine/)
 * (@wastedolphine)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/single-post-error-2/#post-17073306)
 * 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ć](https://wordpress.org/support/users/strongetic/)
 * (@strongetic)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/single-post-error-2/#post-17377554)
 * 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.

 * ![](https://ps.w.org/page-visits-counter-lite/assets/icon-256x256.png?rev=2501212)
 * [Page Visits Counter - Lite](https://wordpress.org/plugins/page-visits-counter-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/page-visits-counter-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/page-visits-counter-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/page-visits-counter-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/page-visits-counter-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/page-visits-counter-lite/reviews/)

 * 9 replies
 * 3 participants
 * Last reply from: [Denis Botić](https://wordpress.org/support/users/strongetic/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/single-post-error-2/#post-17377554)
 * Status: resolved