Previous Thread
Next Thread
Print Thread
Hop To
Joined: Jun 2004
Posts: 207
C
enthusiast
enthusiast
C Offline
Joined: Jun 2004
Posts: 207
I've discovered the Twitter Profile widget is incompatible with at least 7.3.1 (upgrade already yada yada ;)). There appears to be some conflicting js between that and the icons in the post reply panel. Specifically the icon and img insert buttons. If I work on a solution I'll be sure to post it, but it will likely involve a modified ubb file.


Won't you take me to Funkytown?
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
yep, this was a fix that had to be patched into 7.5.6

original 7.5.6 has same problem wink

Joined: Jul 2006
Posts: 116
M
member
member
M Offline
Joined: Jul 2006
Posts: 116
I'm running 7.5.3 and was wondering if this fix can be made available? I recently added a twitter widget and found it breaks the full reply editor buttons.

Joined: Jun 2004
Posts: 207
C
enthusiast
enthusiast
C Offline
Joined: Jun 2004
Posts: 207
If I can remember I will post a fix tonight. It's just a matter of changing the scope of a few ubb js variables.


Won't you take me to Funkytown?
Joined: Jul 2006
Posts: 116
M
member
member
M Offline
Joined: Jul 2006
Posts: 116
Thanks! Will look forward to your reply!

Joined: Jun 2004
Posts: 207
C
enthusiast
enthusiast
C Offline
Joined: Jun 2004
Posts: 207
Well. I know what the problem is, I just can't figure out what is causing it.

standard_text_editor.js:29 TypeError: Result of expression 'get_object(menus[i])' [null] is not an object.

i is being set to "filter" somehow. I've looked at the twitter code and can't figure it out, but I'm not a ninja. Maybe SD or Gizmo can take a crack.



Won't you take me to Funkytown?
Joined: Jul 2006
Posts: 116
M
member
member
M Offline
Joined: Jul 2006
Posts: 116
cascadeclimbers, so you have a fix for it, but don't remember what the fix was? Can you not compare your files with the baseline version to identify any changes? Was the fix confined to standard_text_editor.js, or do you not recall?

Thanks for your response so far, and if SirDude or Gizmo have something further to offer, then that would be hugely appreciated!

Joined: Jun 2004
Posts: 207
C
enthusiast
enthusiast
C Offline
Joined: Jun 2004
Posts: 207
Sorry if I wasn't clear. I knew/know what the problem is and what is causing it, but I couldn't figure where in the Twitter code it is doing so. Sounds like SD might have already figured it out previously so I'll wait for him to chime in.


Won't you take me to Funkytown?
Joined: Jul 2006
Posts: 116
M
member
member
M Offline
Joined: Jul 2006
Posts: 116
OK, thanks again.

SirDude, any comment?

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
i can't remember what i did to fix it

i know it wasn't a big deal, once found...

if i saw the problem site, maybe it would jog my memory

Joined: Jul 2006
Posts: 116
M
member
member
M Offline
Joined: Jul 2006
Posts: 116
The "problem site" can be seen at http://virtuafighter.com smile

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
well i get a DB error right off the bat. can't even see the site

Joined: Jul 2006
Posts: 116
M
member
member
M Offline
Joined: Jul 2006
Posts: 116
If the site was/is down, it's only temporary (less than a minute) as I'm experiencing high server loads recently. If you don't mind looking again it would be appreciated.

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
FWIW, it's still down...
Code
We encountered a problem. The reason reported was

Database error only visible to forum administrators

Please click back to return to the previous page. 


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
yup.. tried again here, same thing

Joined: Jul 2006
Posts: 116
M
member
member
M Offline
Joined: Jul 2006
Posts: 116
I find that really odd! I've been on the site pretty much all weekend (two large tournaments being live streamed both days of the weekend) and it has been more or less ticking along just fine.

If it was ever unavailable, it couldn't have been more than 30 seconds or so. For you both to come back and say that you can't access the site just sounds so strange. At the time of this post it's certainly running (screenshot attached because I'm paranoid).
Attachments
Capture.JPG

Joined: Jun 2006
Posts: 1,344
G
veteran
veteran
G Offline
Joined: Jun 2006
Posts: 1,344
I got the db error just now as well, when I refreshed I saw the site.

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
i'd say the error always happens for guests ( non logged in peeps ).. since it is down for me consistently

actually never been UP at all for me

wink

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Still down for me, as of 9:07am PDT; which is about half an hour after SD reported it down for him...

So yes, I agree with his opinion that it just doesn't work for guests...

Try logging out and see if you get the same error when trying to browse. You can turn on error reporting to the browser by editing libs/mysql.inc.php and changing:
Code
		$showerror = 0;

To:
Code
		$showerror = 1;

And it'll spew the error out to anyone trying to load the page; then we can determine the issue (be sure to set it back once fixed).

Another option is to turn on error logging in the control panel; but then we wouldn't be able to see the error.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
http://virtuafighter.com/forums/ubbthreads.php <-- seems to work

so dunno what you have for a redirector in the root..

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
I'm getting the same error on that link as well on occasion; refreshing seems to fix it; so I'm not sure...


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Mar 2007
Posts: 522
Addict
Addict
Joined: Mar 2007
Posts: 522
Ditto here, Giz.


Steve

UBB.classic from 2000-2003
UBB.threads from 2003-present!
Joined: Jul 2006
Posts: 116
M
member
member
M Offline
Joined: Jul 2006
Posts: 116
Originally Posted by Sirdude
http://virtuafighter.com/forums/ubbthreads.php <-- seems to work

so dunno what you have for a redirector in the root..

No fancy redirects, it's just the ubb portal!? My root index.php is literally:
PHP Code

<?
 $_REQUEST['ubb'] = "portal";
 include("/path/to/forums/ubbthreads.php");
?>

So I tried logging out, deleted all browser cache/temp files and hit the site again -- and it's fine?

Note that I'm not doubting any of you, it's just that I find it really strange you're seeing that standard UBB.t db error. Isn't that usually a result of mysql misbehaving?

And all I wanted was to fix the stupid conflict with the Twitter widget! smile

Joined: Jan 2008
Posts: 514
addict
addict
Joined: Jan 2008
Posts: 514
wow weird... I got the DB error the first time I tried to log in.... the second time I got to the site just fine..

Dunny

Joined: Mar 2007
Posts: 522
Addict
Addict
Joined: Mar 2007
Posts: 522
I just tried it again, from a different computer, with the same result... DB error. Clicking the refresh button brought the site up.


Steve

UBB.classic from 2000-2003
UBB.threads from 2003-present!
Joined: Jul 2006
Posts: 116
M
member
member
M Offline
Joined: Jul 2006
Posts: 116
At the risk of derailing this thread, does anyone have a possible explanation for the DB error? I honestly cannot remember the last time I saw it.

Joined: Jun 2006
Posts: 16,292
Likes: 116
UBB.threads Developer
UBB.threads Developer
Joined: Jun 2006
Posts: 16,292
Likes: 116
Originally Posted by Myke
At the risk of derailing this thread, does anyone have a possible explanation for the DB error? I honestly cannot remember the last time I saw it.
As I said before, you'll need to get the full error message; you'll have to either turn mysql logging on or modify the libs/mysql.inc.php file.


I am a Web Development Contractor, I do not work for UBBCentral. I have provided free User to User Support since the beginning of these support forums.
Do you need Forum Install or Upgrade Services?
Forums: A Gardeners Forum, Scouters World
UBB.threads: UBBWiki, UBB Styles, UBB.Sitemaps
Longtime Supporter & Resident Post-A-Holic
VNC Web Services: Code Modifications, Upgrades, Styling, Coding Services, Disaster Recovery, and more!
Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
i consistently get that error too.. it's not a hit/miss deal.


Joined: Jul 2006
Posts: 116
M
member
member
M Offline
Joined: Jul 2006
Posts: 116
I've turned on $showerror in libs/mysql.inc.php so it'll be interesting to see what you guys get.

Joined: Apr 2007
Posts: 3,940
Likes: 1
SD Offline
Former Developer
Former Developer
Joined: Apr 2007
Posts: 3,940
Likes: 1
you have a crashed ubbt_REFERRER_LOG table

needs repairing


Joined: Jul 2006
Posts: 116
M
member
member
M Offline
Joined: Jul 2006
Posts: 116
Thanks for that, the table is now repaired. I wonder why I never got the DB error though?

Anyway, with that (hopefully) out of the way, perhaps now you can recall the fix to the editor and twitter widget issue?

Joined: Jul 2006
Posts: 116
M
member
member
M Offline
Joined: Jul 2006
Posts: 116
If this helps with recalling the fix, the following is the error reported by the javascript console in Chrome, also shown with attached screenshot:

standard_text_editor.js:29 Uncaught TypeError: Cannot read property 'style' of null

and the referenced code snippet:

Code
24    function showHTML(id,html) {
25        if (menus == null) return false;
26    
27        for (var i in menus) {
28            if (menus[i] != html) {
29                get_object(menus[i]).style.display = 'none';
30            }
31        }
Attachments
js_error.JPG

Last edited by Myke; 09/17/2011 3:11 AM.
Joined: Jul 2006
Posts: 116
M
member
member
M Offline
Joined: Jul 2006
Posts: 116
Is there any chance that someone out there recalls the fix for this?

Joined: Jul 2006
Posts: 116
M
member
member
M Offline
Joined: Jul 2006
Posts: 116
Originally Posted by Sirdude
yep, this was a fix that had to be patched into 7.5.6

original 7.5.6 has same problem wink

When I compare ubb_jslib.js and text_editor.js between 7.5.3 (my version) and 7.5.6 (this site), I find there are no differences?

Can you recall where the patch was applied? I'm more than happy to run the diffs and apply the fix myself.


Link Copied to Clipboard
ShoutChat
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
spam issues
by ECNet - 03/19/2024 11:45 PM
Looking for a forum
by azr - 03/15/2024 11:26 PM
Editing Links in Post
by Outdoorking - 03/15/2024 9:31 AM
Question on barkrowler and the like
by Mors - 02/29/2024 6:51 PM
Member Permissions Help
by domspeak - 02/27/2024 6:31 PM
Who's Online Now
0 members (), 396 guests, and 110 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Los Angeles
Los Angeles
by isaac, August 6
3D Creations
3D Creations
by JAISP, December 30
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 8.0.0
(Preview build 20230217)