• Resolved Barry Brunning

    (@datastream)


    Hello Support,

    Noticed that in some cases our Blog was not displaying images. Noticed the problem was evident on a couple of older Macs I have, but not on more recent ones.

    Digging deeper, the siteground-optimizer-combined-js-…js file was giving an error “SyntaxError: Unexpected token ‘=’. Expected an opening ‘(‘ before a method’s parameter list” Googling the error phrase gives the github explanation of the error. Many many people have older Macs that cannot be readily upgraded to current versions of MacOS (as is the case of my older Mac). The github entry does suggest workarounds.

    The file referenced above as its name says is combined js. However, as you will see the statement flagged is class ApbctCore{ajax_parameters={};rest_parameters={};#selector=null;elements=[];#eventCallback;#eventSelector;#event;constructor(e){this.select(e)}select(e){return e instanceof which is in apbct-public-bundle.min.js

    As you will see from the GitHub issue this is only evident in older versions of Safari, but as you probably know, older macs cannot upgrade to newer versions of MacOS and corresponding Safari versions. And many Macs last a long time. I have three that cannot be upgraded.

    Our Contact Us form should you need it.

    Thank you,

    Barry Brunning

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support dimitrycleantalk

    (@dimitrycleantalk)

    Hello, @datastream

    I’ve passed your details to the programmer staff.

    We will write back to you within 2-4 business days when we get any results.

    Please, wait.

    Plugin Support SergeM

    (@serge00)

    Hello, @datastream.
    Due to a high load of the programmer staff we need additional 3 business days.
    Please, wait.

    Plugin Support dimitrycleantalk

    (@dimitrycleantalk)

    Hello, @datastream
    Thank you for waiting.

    For further investigation, could you please let us know on which versions of Safari and Mac this happens?

    Thread Starter Barry Brunning

    (@datastream)

    Hello Dimitry,

    So equipment I have where the problem manifests:

    Mac	                    OS	                Safari
    iMac early 2009	            10.11.6 El Capitan	11.1.2
    MacBook Air 13” mid 2012    10.14.6 Mojave	13.0.4
    Mac Mini Server	            10.14.5 Mojave	12.1.1
    iPhone 6	            iOS12.5.6	        12.5.6

    As stated, I have newer Macs (and phones/iPads) where there is no problem. For me, even on the older Macs, I can just use Chrome or Firefox. On the iPhone 6 the problem is insurmountable. However, my concern is for users of older Macs and iPhones (and probably older iPads) where the website just looks like it’s not working. Most users will not think to try Firefox, Chrome or whatever just assuming the website is hopeless. This will apply of course to any website using CleanTalk, not just our site. And always to bear in mind, this older hardware while perfectly serviceable and useful for most things, cannot be upgraded.

    Thanks for taking the time to look at this.

    Kind regards,

    Barry Brunning

    Plugin Support dimitrycleantalk

    (@dimitrycleantalk)

    Thank you for the details.

    I’ve passed your details to the programmer staff.

    We will write back to you within 2-5 business days when we get any results.

    Please, wait.

    Plugin Support katereji

    (@katereji)

    Hello.
    The problem turned out to be more difficult than we thought. You can install the older plugin version, for example, 5.183. Here is a link to it: https://downloads.www.ads-software.com/plugin/cleantalk-spam-protect.zip

    Plugin Support dimitrycleantalk

    (@dimitrycleantalk)

    Hello, @datastream

    We’ve made some fixes.

    Please, use this instruction below to install the fixed version (the fix will be included in the further version):

    Download link: https://github.com/CleanTalk/wordpress-antispam/archive/refs/heads/babel.zip

    1. Go to the WordPress Administrator Panel —> Plugins.
    2. Find the plugin “Anti-Spam Protection by CleanTalk” —> Deactivate.
    3. After the automatic page refresh, find the plugin again “Anti-Spam Protection by CleanTalk” —> Delete. Confirm “Yes, delete these files”.
    4. Go to Plugins —> Add New —> Upload Plugin.
    5. Download the plugin archive from the link above.
    6. Choose the downloaded archive and press “Install Now”.

    Did it help?

    Thread Starter Barry Brunning

    (@datastream)

    Hi Dimitry,

    Yes, this solved the issue both in older MacOS/Safari and iPhone6 iOS.

    Thank you,

    Barry Brunning

    Plugin Support dimitrycleantalk

    (@dimitrycleantalk)

    You’re welcome!

    Feel free to contact us.
    Kind regards.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘SyntaxError: Unexpected token ‘=’ in js on older Macs’ is closed to new replies.