Forum javascript errors

I have D7 running locally on my laptop with no issues. Last night I installed it on my virtual server to begin testing the migration scripts and the forum is not working at all. I can't even click the compile languages link because of javascript errors. I don't know what is causing these errors. I tried clearing the cache and also uninstalling/reinstalling orca, all to no avail. Also, the forum posts block on the left side always keeps spinning.

Error: syntax error
Source File: http://www.___.com/community/cache_public/bx_templ_js_869903d363bc638626995bb6a973139f.js
Line: 6793
Source Code:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

Error: $ is not defined
Source File: http://www.___.com/community/forum/
Line: 14

Error: BxDolSubscription is not defined
Source File: http://www.___.com/community/forum/
Line: 61

Error: jQuery is not defined
Source File: http://www.___.com/community/forum/
Line: 634

Error: $ is not defined
Source File: http://www.___.com/community/forum/
Line: 1314

Error: Forum is not defined
Source File: http://www.___com/community/forum/
Line: 1487

Error: BxHistory is not defined
Source File: http://www.___.com/community/forum/
Line: 1

Any help would be appreciated.

Thanks...

Quote · 4 Jan 2010

I am having the exact same issues and errors!

Any help out there?

TIA

nosyguy

Quote · 4 Jan 2010

Additional info regarding my woes:

In the modules control panel, I can select the Orca Forum module, click the Compile Languages button and it completes successfully. However I'm still having this issue after doing that and I see the XSL elements in the browser instead of the actual text. I have XSL installed on the server so I don't think it's that. The javascript errors prevents the page from rendering itself on the client.

Quote · 4 Jan 2010

I know there was a problem in version 6 to.. Try to dissable Maqic_quotes_runtime in your php.ini  (restart server) and maby this is working for you. If not set it again to ON.

Kids first
Quote · 4 Jan 2010

I have the exact same problem as noted in this thread. http://www.boonex.com/unity/forums/#topic/Forum-error-Help-PLZ.htm   I can't find a resolution. I did a clean install again etc.

Quote · 4 Jan 2010

Also may want to check and make sure that allow_url_fopen is set to On in the php.ini.

I have also heard some instances where the php.ini file needed to be copied to the /modules/boones/forums folder.

Just posting somethings that might help.

Chris

Nothing to see here
Quote · 4 Jan 2010

My thing is why would it work fine before the upgrade and then have to do all these other changes. I don't think its server side. All my settings are still the same.  It worked perfectly in RC3 and even after a clean install I get the same JS errors and the spinning loading gif that MMF gets.

Nothing I've tried will fix it. The page doesn't render properly because the footer bar doesn't even appear also. FF shows 6 errors via FireBug. It was not a problem before. All my server settings are still the same and meet the requirements because I've checked. If it was just me that was having this problem its one thing, but there seem to be several.  Not sure what's causing it.

I noticed that I had to uncheck caching of images and html just to get images to display in IE7 but thats another issue.

Quote · 4 Jan 2010

Ok. Some other suggestions:

- Have you tried re-uploading the /modules/boonex/forums directory? (Im sure you have - when all else fails)

- Are you using a custom template? If so, change the template back to Uni and see if you still get the errors.

I have heard of ALOT of issues when it comes to the forums and custom templates.

Chris

Nothing to see here
Quote · 4 Jan 2010

I haven't uploaded the forums again.  Do you mean unzipping the distribution file, isolating the forums directory and overwriting the contents in modules/boonex/forums? I can only try that later tonight -- I don't have ssh or ftp access at work.

In the meantime, I was comparing the html of the working version on my laptop and the version on my server and I noticed that some paths do not reflect the language yet:

WORKING:

var urlXsl = 'http://localhost/community/forum/layout/uni_en/xsl/';
var urlImg = 'http://localhost/community/forum/layout/base_en/img/';

NOT WORKING:

var urlXsl = 'http://www.___.com/community/forum/layout/uni/xsl/';
var urlImg = 'http://www.___.com/community/forum/layout/base/img/';

This probably has to do with the fact that it won't compile the languages even though I can perform the task successfully via the modules admin tool.

Anybody know where this language setting is stored? Possibly a file somewhere or in the database?

Quote · 4 Jan 2010

Yeah when it was working I had the uni_en folder and the base_en folder. Neither of those exist on the clean install. You can't even try to compile the language because the JS errors keeps the links from working.

Quote · 4 Jan 2010

Ok I installed it on a subdomain and it seems to work. So then I did ANOTHER clean install in the main webroot and same exact problem. I don't get it.  I SSH to my server did a rm -fR * and cleared the entire directory uploaded the zip file unzipped it via SSH, the exact same thing I did on my subdomain. Then I installed and even created a new database. Still get the JS errors and spinning loading gif. Unbelievable. This worries me that if its not consistent can it be a stable community. I don't want to have errors in a live site and not know how to fix it.

Edit: It appears reinstalling it yet again fixed it but it seems FF was holding on to the cache making me think it was still broken. Checking it in IE worked and manually clearing cache in FF made it show correctly after the reinstall.

Quote · 4 Jan 2010

It's troubling that several folks have encountered this issue and the root cause has yet to be found. This can be devastating if the issue reappears 6 months after a successful production release.

I will backup my current installation and do a clean redeploy tonight. If it's successful I'll try to compare the two to see if there is something different.

Quote · 4 Jan 2010

I'm still getting these javascript errors. I performed a clean install after removing the old installation and dropping all the tables from the database. Anybody have any ideas?

I did notice that the forum home page has two DOCTYPE declarations... I wonder if this could be causing any javascript issues?

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
<title>Orca :: Interactive Forum Script</title>
Quote · 5 Jan 2010

I resolved the issue.  When debugging, I noticed that in the file "/community/cache_public/bx_templ_js_ ... .js", there were a bunch of 401 Authorization Required errors in the place of the actual javascript file source (see end of posting for details). Seems like the server was trying to include these files but wasn't able to.

These errors were caused by the directory protection (using .htaccess) I applied at the top level (/community) to keep the /community path private until it was ready for production release. It seems that the the server requires the authentication credentials when trying to include these files even though I authenticated on the client side. To fix it I've removed the .htaccess style protection and will just rely on protecting the site by preventing users from being able to login until the site is ready.


DETAILED ERROR MESSAGES:

/*--- BEGIN: http://www.___.com/community/forum/js/util.js---*/

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested.  Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<hr>
<address>Apache/2.2.3 (CentOS) Server at www.___.com Port 80</address>
</body></html>
;
/*--- END: http://www.___.com/community/forum/js/util.js---*/

/*--- BEGIN: http://www.___.com/community/forum/js/BxError.js---*/
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">

<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested.  Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<hr>
<address>Apache/2.2.3 (CentOS) Server at www.___.com Port 80</address>
</body></html>
;
/*--- END: http://www.___.com/community/forum/js/BxError.js---*/

/*--- BEGIN: http://www.___.com/community/forum/js/BxXmlRequest.js---*/
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>

<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested.  Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<hr>
<address>Apache/2.2.3 (CentOS) Server at www.___.com Port 80</address>
</body></html>
;
/*--- END: http://www.___.com/community/forum/js/BxXmlRequest.js---*/

/*--- BEGIN: http://www.___.com/community/forum/js/BxXslTransform.js---*/
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>

</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested.  Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<hr>
<address>Apache/2.2.3 (CentOS) Server at www.___.com Port 80</address>
</body></html>
;
/*--- END: http://www.___.com/community/forum/js/BxXslTransform.js---*/

/*--- BEGIN: http://www.___.com/community/forum/js/BxForum.js---*/
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>

<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested.  Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<hr>
<address>Apache/2.2.3 (CentOS) Server at www.___.com Port 80</address>
</body></html>
;
/*--- END: http://www.___.com/community/forum/js/BxForum.js---*/

/*--- BEGIN: http://www.___.com/community/forum/js/BxHistory.js---*/
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>

<p>This server could not verify that you
are authorized to access the document
requested.  Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<hr>
<address>Apache/2.2.3 (CentOS) Server at www.___.com Port 80</address>
</body></html>
;
/*--- END: http://www.___.com/community/forum/js/BxHistory.js---*/

/*--- BEGIN: http://www.___.com/community/forum/js/BxLogin.js---*/
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested.  Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>

<hr>
<address>Apache/2.2.3 (CentOS) Server at www.___.com Port 80</address>
</body></html>
;
/*--- END: http://www.___.com/community/forum/js/BxLogin.js---*/

/*--- BEGIN: http://www.___.com/community/forum/js/BxAdmin.js---*/
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>401 Authorization Required</title>
</head><body>
<h1>Authorization Required</h1>
<p>This server could not verify that you
are authorized to access the document
requested.  Either you supplied the wrong
credentials (e.g., bad password), or your
browser doesn't understand how to supply
the credentials required.</p>
<hr>

<address>Apache/2.2.3 (CentOS) Server at www.___.com Port 80</address>
</body></html>
;
/*--- END: http://www.___.com/community/forum/js/BxAdmin.js---*/

Quote · 5 Jan 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.