Jump to content

Archived

This topic is now archived and is closed to further replies.

Mike Becker

Pagelines malfunction across many sites saying "javascript error detected"

Recommended Posts

Mike Becker    3
Mike Becker

So here's the issue. I've always used and installed Pagelines Developer Version and Wordpress the same way. Never coming across any "Javascript Errors."

 

I know the installation or updates are not an issue since I have downloaded from Pagelines>Account>Products and installed clean. However, for the last week, I've had a very strange (SERIOUS) issue where my Pagelines has been basically rendered useless across all about 40 different already finished websites. They are all experiencing same issue, and the funny thing is I have done many things to attempt to fix... re installed fresh, new databases, turned on and off section and plugins.

 

Here's what's happening: In wp-admin / pagelines / dashboard (or site options, or page options and including drag and drop) there is a spinning icon that says "javascript error detected".

 

Someone suggested that my host may have been hacked and that someone may have installed or put some unwanted javascript code into my files. I'm not exactly sure how that may have happened since I have some sites on complete different web hosts. 

 

Here are are 2 of the many sites as example sites to observer because they both are hosted on different web hosts. Note: I have activated pagelines debug (not sure if it will work since pagelines is malfunctioning).

 

Please help.

 

(1)

Website URL: http://www.fitnesswearinc.com

Server/Host: WPEngine
Framework Version: Developer 2.4.1
WordPress Version:  3.5.1
Plugins in Use: 

 

  1. Affiliates

  2. Affiliates Jigoshop Integration Light

  3. Bad Ass Shortcodes

  4. bbPress

  5. bbPress for PageLines

  6. Browser Specific CSS

  7. BuddyPress

  8. BuddyPress for PageLines

  9. BuddyPress Template Pack

  10. Footer Extras

  11. Gadget

  12. Grid Shortcodes

  13. Hooker

  14. Infinite SEO

  15. Jigoshop

  16. Jigoshop for PageLines

  17. Jigoshop Product Add-ons

  18. LaunchPage

  19. LazyLoader

  20. PageLines Googlefonts

  21. Pagelines Sections

  22. PageLines Shortcode Generator

  23. Poppy

  24. Post Types Order

  25. Regenerate Thumbnails

  26. Salebar

  27. Sexy Snips

  28. Signup TOS

  29. Simple CSS Lite

  30. Simply Instagram

  31. Special Recent Posts FREE Edition

  32. Superfade

  33. Ultimate Branding

  34. Viewer

  35. WordPress Importer

  36. WP Project Manager

 

(2) 

Website URL: http://www.resultshubhq.com

Server/Host: Rackspace Cloud Sites
Framework Version: Developer 2.4.1
WordPress Version:  3.5.1
Plugins in Use: 

 

  1.  

    1. Akismet

    2. Appointments+

    3. Avatars (BBPress)

    4. Bad Ass Shortcodes

    5. bbPress

    6. bbPress for PageLines

    7. Browser Specific CSS

    8. BuddyPress

    9. BuddyPress for PageLines

    10. BuddyPress Template Pack

    11. BuddyPress Toolbar

    12. Events +

    13. Footer Extras

    14. Gadget

    15. Grid Shortcodes

    16. Hello Dolly

    17. Membership Premium

    18. PageLines Googlefonts

    19. Pagelines Sections

    20. PageLines Shortcode Generator

    21. Q&A - WordPress Questions and Answers Plugin

    22. Sexy Snips

    23. Special Recent Posts FREE Edition


     

Mike Becker 

 
 

 

Share this post


Link to post
Share on other sites
James B    436
James B

Note for moderators: check admin notes, login details provided


Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
James B    436
James B

Hi Mike

 

Ok we've logged in and taken a look at this. Everything seems to be working normally. The js loader does show up just after the page loads, but then the script loads and everything works as normal. I've taken some video casts to show you, is this the same as what happens when you log into the site?

 

First site

http://screencast.com/t/JJPa7Kk8k

 

Second Site

http://screencast.com/t/yz4FfzyO2M

 

I tested the drag and drop and went into the Pl store on your install and didn't get any further errors, all the pages rendered. Moving items in the drag and drop saved ok too.

 

If you're seeing something different could you let us know what browser you're using and possibly do a video cast for us.

  • Like 1

Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites
diamond43    1
diamond43

I'm having this same problem. My little spinning wheel (on the same page as the OP above) says, "javascript error detected", but the little wheel never goes away, and the page layout area (further down the same page) is "frozen" and unresponsive.

 

Solutions? Thoughts?

 

Should I try and re-load the PL theme? 

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

 

The Spinning Wheel of Death is usually caused by a Plugin, disable all active plugins and see if this resolves your issue. If this doesn't resolve your issue, it may be related to your servers configuration.

 

Can you provide you enable PL Debug mode and also provide your PHP info please. 


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
diamond43    1
diamond43

Danny,

 

Thank you for your thoughtful replies. In response to your two suggestions immediately preceding....

 

1. Already tried the turn-off all plugins option. Spinning wheel still spinning ("spinning wheel, got t'go round..."). NOTE: I read in another post somewhere that one guy had the spinning wheel problem, and it was plugin related. He turned the offending plugin off and a plugin-related file that was left behind was ultimately responsible. I've looked but, what am I looking for???

 

2. The spinner problem has existed over 2 different servers. About a month ago we moved the site to a new hosting account, where the problem persists. I'm betting that the same potential server configuration problem appearing on both hosting accounts is pretty slim. In fact, I contacted both hosting accounts and of course the problem was not theirs, or didn't originate with them, blah, blah, blah.

 

That leads me back to my re-install the theme, or WP, or both option to get rid of the left-over file(s) that may be lurking in the darkness (see #1 above). If you feel that's probable, please give me a step by step what to do for re-installing WP and/or DMS without losing my site's content.

 

If you have any other ideas, I'm all ears.  :bow:

Share this post


Link to post
Share on other sites
Rob    547
Rob

Where is your DMS installation installed? Can you please look by FTP at wp-content/themes and tell me the folder name? Thanks.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
diamond43    1
diamond43

Unfortunately I wrote "DMS" in my last post and that should have been "Pagelines". It is NOT DMS, it's Pagelines 2.something.

 

So let's try this again. Thoughts?

Share this post


Link to post
Share on other sites
Danny    1,327
Danny

Hi,

 

It may be related to your server configuration. Both your sites PL debug info displays this:

 

PHP User : Posix functions are disabled on this host!

 

This is most likely the cause of the issue, I recommend you contact your host and ask them to resolve this.


Please search our forums, before posting!

Share this post


Link to post
Share on other sites
diamond43    1
diamond43

What "both your sites"? I only have one site and I never mentioned the url. I think you may have snagged the OP's site url's. As I mentioned above...

 

2. The spinner problem has existed over 2 different servers. About a month ago we moved the site to a new hosting account, where the problem persists. I'm betting that the same potential server configuration problem appearing on both hosting accounts is pretty slim. In fact, I contacted both hosting accounts and of course the problem was not theirs, or didn't originate with them, blah, blah, blah.

 

That leads me back to my re-install the theme, or WP, or both option to get rid of the left-over file(s) that may be lurking in the darkness (see #1 above). If you feel that's probable, please give me a step by step what to do for re-installing WP and/or DMS without losing my site's content.

 

BTW, the site address is:  http://FirstClassAirSvc.com

Share this post


Link to post
Share on other sites
Danny    1,327
Danny
diamond43 Can you disable all plugins and enable PageLines Debug mode. PageLines > Site Options > Advanced. Once active reply here, informing us and we can take a closer look. However, if you have disabled all plugins and are still receiving the Spinning Wheel of Death, I can say that it is most likely server related.

Please search our forums, before posting!

Share this post


Link to post
Share on other sites
diamond43    1
diamond43

Danny  I appreciate your continued willingness to help, but this thread has been so disjointed I'm afraid you're missing some of the points I've tried to make. Let me condense it and try one last time.

 

1. The site in question started seeing the SWOD while on hosting Server #1.

2. The site was transferred to a new hosting account (Server #2) and the SWOD persists!

 

The two biggest possibilities I can see from reading related threads are:

 

1. Left-over junk files from a problem plugin that has since been uninstalled/removed. (And the SWOD continued after ALL plugins were turned off, too.)

2. The server config that you mention. (But on two, totally unrelated servers? At separate hosting companies?)

 

That sums it up!

 

You still think it's server related, or does the junk files theory make more sense?

Share this post


Link to post
Share on other sites
Rob    547
Rob

The spinning wheel indicates your site is trying to load something it cannot find. Where that comes from, we cannot tell from here.

 

That said, we can guide you to find out.

 

Login to your site in FTP.  Find wp-config.php.

 

Edit the file and search for wp_debug.  The line is define('WP_DEBUG', false);

 

Change it to define('WP_DEBUG', true);.

 

You'll see errors everywhere.  Copy them, and paste them to a report we can read through.  This will tell us what's trying and failing to load. From that, we can discern, or your host can, whether its a missing plugin or a broken issue in your server.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
diamond43    1
diamond43

Got all of this done and I'm down to the, "you'll see errors everywhere" part.

 

If I look at the site itself, I see this:

 

Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home1/champion/public_html/wp-includes/functions.php on line 2969

Notice: Undefined index: ws_plugin__qcache_menu_pages_css in /home1/champion/public_html/wp-content/plugins/quick-cache/includes/classes/admin-css-js.inc.php on line 20

Notice: Undefined index: ws_plugin__qcache_menu_pages_js in /home1/champion/public_html/wp-content/plugins/quick-cache/includes/classes/admin-css-js.inc.php on line 28

 

 

 

If I try to log in to the back-end I get this:

 

Notice: has_cap was called with an argument that is deprecated since version 2.0! Usage of user levels by plugins and themes is deprecated. Use roles and capabilities instead. in /home1/champion/public_html/wp-includes/functions.php on line 2969

Notice: Undefined index: ws_plugin__qcache_menu_pages_css in /home1/champion/public_html/wp-content/plugins/quick-cache/includes/classes/admin-css-js.inc.php on line 20

Notice: Undefined index: ws_plugin__qcache_menu_pages_js in /home1/champion/public_html/wp-content/plugins/quick-cache/includes/classes/admin-css-js.inc.php on line 28

Warning: Cannot modify header information - headers already sent by (output started at /home1/champion/public_html/wp-includes/functions.php:2969) in /home1/champion/public_html/wp-login.php on line 384

Warning: Cannot modify header information - headers already sent by (output started at /home1/champion/public_html/wp-includes/functions.php:2969) in /home1/champion/public_html/wp-login.php on line 396

Warning: Cannot modify header information - headers already sent by (output started at /home1/champion/public_html/wp-includes/functions.php:2969) in /home1/champion/public_html/wp-includes/pluggable.php on line 695

Warning: Cannot modify header information - headers already sent by (output started at /home1/champion/public_html/wp-includes/functions.php:2969) in /home1/champion/public_html/wp-includes/pluggable.php on line 696

Warning: Cannot modify header information - headers already sent by (output started at /home1/champion/public_html/wp-includes/functions.php:2969) in /home1/champion/public_html/wp-includes/pluggable.php on line 697

Warning: Cannot modify header information - headers already sent by (output started at /home1/champion/public_html/wp-includes/functions.php:2969) in /home1/champion/public_html/wp-includes/pluggable.php on line 698

Warning: Cannot modify header information - headers already sent by (output started at /home1/champion/public_html/wp-includes/functions.php:2969) in /home1/champion/public_html/wp-includes/pluggable.php on line 699

Warning: Cannot modify header information - headers already sent by (output started at /home1/champion/public_html/wp-includes/functions.php:2969) in /home1/champion/public_html/wp-includes/pluggable.php on line 700

Warning: Cannot modify header information - headers already sent by (output started at /home1/champion/public_html/wp-includes/functions.php:2969) in /home1/champion/public_html/wp-includes/pluggable.php on line 703

Warning: Cannot modify header information - headers already sent by (output started at /home1/champion/public_html/wp-includes/functions.php:2969) in /home1/champion/public_html/wp-includes/pluggable.php on line 704

Warning: Cannot modify header information - headers already sent by (output started at /home1/champion/public_html/wp-includes/functions.php:2969) in /home1/champion/public_html/wp-includes/pluggable.php on line 705

Warning: Cannot modify header information - headers already sent by (output started at /home1/champion/public_html/wp-includes/functions.php:2969) in /home1/champion/public_html/wp-includes/pluggable.php on line 706

Warning: Cannot modify header information - headers already sent by (output started at /home1/champion/public_html/wp-includes/functions.php:2969) in /home1/champion/public_html/wp-includes/pluggable.php on line 709

Warning: Cannot modify header information - headers already sent by (output started at /home1/champion/public_html/wp-includes/functions.php:2969) in /home1/champion/public_html/wp-includes/pluggable.php on line 710

Warning: Cannot modify header information - headers already sent by (output started at /home1/champion/public_html/wp-includes/functions.php:2969) in /home1/champion/public_html/wp-includes/pluggable.php on line 711

Warning: Cannot modify header information - headers already sent by (output started at /home1/champion/public_html/wp-includes/functions.php:2969) in /home1/champion/public_html/wp-includes/pluggable.php on line 712

 

And that's all the errors I can see 'cause I cannot log in now! Gonna change the wp-config file back so hopefully the login issue is gone. So whatd'ya see?

 

*********************************************************

P.S. I just now deactivated the Quick Cache plugin. No change. SWOD is still there.

I then uninstalled the plugin. No change. SWOD still there.

fyi.

Share this post


Link to post
Share on other sites
Rob    547
Rob

Very likely, your cache plugin cached the site before being deactivated in its poor state.  That cache file will exist outside the plugin, so even removing it won't remove the cache.


Former PageLines Moderator, Food Expert and Raconteur

Share this post


Link to post
Share on other sites
mundocaco+    9
mundocaco

Danny hello. I'm working with a new project. Something strange happen with dms in Chrome

 

In every browser work fine, bu in Chrome there a error:

 

You can look here: http://wp.escuelademasaje.com/

 

thank you for your help. :)

Share this post


Link to post
Share on other sites
James B    436
James B

Hi Mundocaco

 

As this topic is solved please start a new thread for your issue. I've checked your site in chrome but am unable to see any obvious issues displaying. Please include in your thread a screenshot of the issue and some more information so the moderator team can look into this further for you.

  • Like 1

Kindly search the forum and read the documentation before posting. It will help you resolve many issues.

For CSS help be sure to check out W3Schools first and be sure to download FireBug for FireFox for troubleshooting.

James B

Share this post


Link to post
Share on other sites

  • Similar Content

    • chamois_blanc
      By chamois_blanc+
      I am trying to clone a container on a page. It throws the following javascript error:
      function l(b, c, e, f) { var g = m.a.f.get(b, p); if (!c) { if (g) throw Error("You cannot apply bindings multiple times to the same element."); m.a.f.set(b, p, !0) } I would appreciate guidance and a fix. Thank you
    • Jeremiah
      By Jeremiah+
      Error: editing.js?ver=930684:5 Uncaught TypeError: Cannot read property 'getData' of undefined
      I have all of the plugins disabled and I still receive the error.
      Page Editor will not load on page.
       
    • oseehys
      By oseehys+
      Can someone give me a breakthrough out here?
      I have been on the media player for like 5 hours now yet it is still not displaying on my media box or the textbox,
      its a free media player on soundclound
      Great day ahead to the developers out here...
      am trying to install the Toneden media player https://www.toneden.io/player to display my songs on sound cloud, i followed everything on the doc, but obviuosly am missing something i did everything i can for 5 hours yet no breakthrough, am using the textbox as display.
      This is the html script i used, what am i missing here? see it below
        (function() { var script = document.createElement('script') script.type = 'text/javascript'; script.async = true; script.src = 'http://sd.toneden.io/production/toneden.loader.js' var entry = document.getElementsByTagName('script')[0]; entry.parentNode.insertBefore(script, entry); }()); ToneDenReady = window.ToneDenReady || []; ToneDenReady.push(function() { ToneDen.player.create({''enter code here'' dom: '#player', urls: [''https://soundcloud.com/reginaspektor'' ] }); });
    • wesleymusgrove
      By wesleymusgrove
      I'm trying to execute some simple JavaScript inline in the style.less file of my child theme.  But it causes some LESS compiler error and completely breaks the DMS editor so I can't edit anything or use the toolbar on the frontend.
      @all-background-colors: "#D09EC8,#F2DD8B,#84e0cd,#F3904E"; @background-color: color(~`@{all-background-colors}.split(',')[Math.floor(Math.random()*@{all-background-colors}.split(',').length)]`); body { background: @background-color; } On http://less2css.org/, this snippet works and randomly changes the body's background to 1 of the 4 colors in @all-background-colors.
      Even something as simple as this anonymous function breaks the compiler:
      @color: ~`(function(){ return "red"; })()`; body { background: @color; } The only way to fix the DMS editor is to remove the JS from my style.less file, and then edit and save the LESS fallback section in the dashboard.
      I tried setting PL_LESS_DEV in my wp-config.php according to http://www.pagelinestheme.com/dms-custom-less-tips/, but it doesn't clear the cache every page refresh like it's supposed to.
      define('PL_LESS_DEV',true); Is it possible to execute this kind of JavaScript in the style.less file of a DMS child theme?
    • jfsturtz
      By jfsturtz
      Hi again.
       
      I'm aspiring to place an image on a page with a MediaBox, then define an HTML image map (<map>, <area> ...), then define an HTML <canvas> over it, then draw on the canvas with custom javascript.
       
      Before I spring $25 -- is Hooker the right guy for this job?  I know you can't support custom script; I'm fine with that -- I've got it all developed and working in JSFiddle.  I just want to know if Hooker is the right (or at least a workable) way to integrate it into my DMS2 site.
       
      Thanks.
       
      /John
×