Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Run script "void (0)" error on Safari.

Safari on OSX 10.12.4 is giving me a Run script "Void(0)" error when I try to perform certain functions on reddit.com.

I am using Safari Version 10.1.


I cannot perform the following functions:

  • Collapse comments
  • Reply to comments
  • Upvote/downvote comments
  • Submit posts
  • Other functions only on the reddit website.

This is an example of the errors I find when I inspect an element on the website. The following element is to collapse a comment:

[Error] TypeError: r.sendError is not a function. (In 'r.sendError("Error running module","reddit-init.js",":",err.toString())', 'r.sendError' is undefined) Global Code (reddit-init.en-us.qKqIsEzMerg.js:8:19130) [Error] Error running module (3) "reddit.js" ":" "TypeError: this.$el.find(\"[data-validate-url]\").validator is not a function. (In 'this.$el.find(\"[data-validate-url]\").validator({https:!!r.config.https_endpo int})', 'this.$el.find(\"[data-validate-url]\").validator' is undefined)" error sendError (reddit-init.en-us.qKqIsEzMerg.js:5:28089) Global Code (reddit.en-us.h08zXN3eias.js:6:1772) [Error] Failed to load resource: the server responded with a status of 400 (HTTP/2.0 400) (error.json, line 0) [Error] TypeError: $(e).thing is not a function. (In '$(e).thing()', '$(e).thing' is undefined) togglecomment (reddit-init.en-us.qKqIsEzMerg.js:7:21532) onclick (best_plane_ride_ever:159)


Any ideas how to fix this?


Thanks!

MacBook Pro, macOS Sierra (10.12.4)

Posted on Apr 26, 2017 1:12 PM

Reply
3 replies

Apr 26, 2017 1:37 PM in response to sskhalifian

Safari/Preferences/Advanced - enable the Develop menu, then go there and Empty Caches. Quit/reopen Safari and test. Then try Safari/History/Show History and delete all history items. Quit/reopen Safari and test. You can also try try Safari/Clear History…. The down side is it clears all cookies. Doing this may cause some sites to no longer recognize your computer as one that has visited the web site. Go to Finder and select your user/home folder. With that Finder window as the front window, either select Finder/View/Show View options or go command - J. When the View options opens, check ’Show Library Folder’. That should make your user library folder visible in your user/home folder. Select Library/Caches/com.apple.Safari/Cache.db and move it to the trash.


Safari Corruption See post by Linc Davis


If that doesn't work, try running this program in your normal account , then copy and paste the output in a reply. The program was created by etresoft, a frequent contributor. Please use copy and paste as screen shots can be hard to read. On the screen with Options, please open Options and check the bottom 2 boxes before running. Click “Share Report” button in the toolbar, select “Copy Report” and then paste into a reply. This will show what is running on your computer. No personal information is shown.

Etrecheck – System Information

Run script "void (0)" error on Safari.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.