Previous Thread
Next Thread
Print Thread
Hop To
Incompatibility: Twitter profile widget #242348 03/26/2011 5:01 PM
Joined: Jun 2004
Posts: 207
cascadeclimbers Offline OP
enthusiast
OP Offline
enthusiast
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?
Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #242351 03/26/2011 8:41 PM
Joined: Apr 2007
Posts: 3,938
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,938
yep, this was a fix that had to be patched into 7.5.6

original 7.5.6 has same problem wink

Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245221 08/29/2011 8:53 AM
Joined: Jul 2006
Posts: 116
Myke Offline
member
Offline
member
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.

Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245233 08/29/2011 6:45 PM
Joined: Jun 2004
Posts: 207
cascadeclimbers Offline OP
enthusiast
OP Offline
enthusiast
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?
Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245235 08/29/2011 8:03 PM
Joined: Jul 2006
Posts: 116
Myke Offline
member
Offline
member
Joined: Jul 2006
Posts: 116
Thanks! Will look forward to your reply!

Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245242 08/30/2011 12:16 AM
Joined: Jun 2004
Posts: 207
cascadeclimbers Offline OP
enthusiast
OP Offline
enthusiast
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?
Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245291 08/31/2011 4:42 AM
Joined: Jul 2006
Posts: 116
Myke Offline
member
Offline
member
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!

Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245302 08/31/2011 6:02 PM
Joined: Jun 2004
Posts: 207
cascadeclimbers Offline OP
enthusiast
OP Offline
enthusiast
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?
Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245309 09/01/2011 7:15 AM
Joined: Jul 2006
Posts: 116
Myke Offline
member
Offline
member
Joined: Jul 2006
Posts: 116
OK, thanks again.

SirDude, any comment?

Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245310 09/01/2011 10:51 AM
Joined: Apr 2007
Posts: 3,938
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,938
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

Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245322 09/02/2011 3:53 AM
Joined: Jul 2006
Posts: 116
Myke Offline
member
Offline
member
Joined: Jul 2006
Posts: 116
The "problem site" can be seen at http://virtuafighter.com smile

Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245324 09/02/2011 5:48 PM
Joined: Apr 2007
Posts: 3,938
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,938
well i get a DB error right off the bat. can't even see the site

Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245326 09/03/2011 8:36 AM
Joined: Jul 2006
Posts: 116
Myke Offline
member
Offline
member
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.

Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245327 09/03/2011 10:24 AM
Joined: Jun 2006
Posts: 15,852
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,852
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.
Need to Upgrade?
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!
Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245328 09/03/2011 10:31 AM
Joined: Apr 2007
Posts: 3,938
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,938
yup.. tried again here, same thing

Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245339 09/04/2011 9:19 AM
Joined: Jul 2006
Posts: 116
Myke Offline
member
Offline
member
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).

Attached Files Capture.JPG
Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245340 09/04/2011 9:34 AM
Joined: Jun 2006
Posts: 1,344
gliderdad Offline
veteran
Offline
veteran
Joined: Jun 2006
Posts: 1,344
I got the db error just now as well, when I refreshed I saw the site.

Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245341 09/04/2011 9:35 AM
Joined: Apr 2007
Posts: 3,938
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,938
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

Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245343 09/04/2011 11:10 AM
Joined: Jun 2006
Posts: 15,852
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,852
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.
Need to Upgrade?
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!
Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245344 09/04/2011 11:28 AM
Joined: Apr 2007
Posts: 3,938
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,938
http://virtuafighter.com/forums/ubbthreads.php <-- seems to work

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

Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245345 09/04/2011 3:29 PM
Joined: Jun 2006
Posts: 15,852
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,852
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.
Need to Upgrade?
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!
Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245346 09/04/2011 3:39 PM
Joined: Mar 2007
Posts: 522
SteveS Offline
Addict
Offline
Addict
Joined: Mar 2007
Posts: 522
Ditto here, Giz.


Steve

UBB.classic from 2000-2003
UBB.threads from 2003-present!
Re: Incompatibility: Twitter profile widget [Re: SD] #245350 09/04/2011 8:00 PM
Joined: Jul 2006
Posts: 116
Myke Offline
member
Offline
member
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

Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245352 09/04/2011 11:48 PM
Joined: Jan 2008
Posts: 514
Dunny Offline
addict
Offline
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

Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245354 09/05/2011 4:46 AM
Joined: Mar 2007
Posts: 522
SteveS Offline
Addict
Offline
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!
Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245355 09/05/2011 5:43 AM
Joined: Jul 2006
Posts: 116
Myke Offline
member
Offline
member
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.

Re: Incompatibility: Twitter profile widget [Re: Myke] #245358 09/05/2011 11:12 AM
Joined: Jun 2006
Posts: 15,852
Gizmo Offline
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,852
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.
Need to Upgrade?
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!
Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245363 09/05/2011 2:31 PM
Joined: Apr 2007
Posts: 3,938
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,938
i consistently get that error too.. it's not a hit/miss deal.


Re: Incompatibility: Twitter profile widget [Re: Gizmo] #245384 09/06/2011 5:18 AM
Joined: Jul 2006
Posts: 116
Myke Offline
member
Offline
member
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.

Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245388 09/06/2011 9:38 AM
Joined: Apr 2007
Posts: 3,938
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,938
you have a crashed ubbt_REFERRER_LOG table

needs repairing


Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245404 09/06/2011 8:23 PM
Joined: Jul 2006
Posts: 116
Myke Offline
member
Offline
member
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?

Re: Incompatibility: Twitter profile widget [Re: Myke] #245519 09/17/2011 2:06 AM
Joined: Jul 2006
Posts: 116
Myke Offline
member
Offline
member
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        }

Attached Files js_error.JPG
Last edited by Myke; 09/17/2011 2:11 AM.
Re: Incompatibility: Twitter profile widget [Re: cascadeclimbers] #245940 09/25/2011 3:03 AM
Joined: Jul 2006
Posts: 116
Myke Offline
member
Offline
member
Joined: Jul 2006
Posts: 116
Is there any chance that someone out there recalls the fix for this?

Re: Incompatibility: Twitter profile widget [Re: SD] #246096 09/30/2011 3:22 AM
Joined: Jul 2006
Posts: 116
Myke Offline
member
Offline
member
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.


Forum Search
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
Mobile app?
by Baldeagle - 12/06/2019 9:32 PM
How do you change Text Line spacing?
by jorb - 11/23/2019 12:14 AM
What happened to FAQ or Forum Help
by Ruben - 11/20/2019 11:58 AM
Search feature encountering an Error message
by jorb - 11/20/2019 12:06 AM
Followed List v7.7.2 Question
by Ruben - 11/12/2019 12:22 PM
Who's Online Now
1 registered members (JAISP), 80 guests, and 420 spiders.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
Artistic structures
Artistic structures
by isaac, August 29
Stones
Stones
by isaac, August 19
Amusing Terain Scenics
Amusing Terain Scenics
by isaac, August 19
Sky places
Sky places
by isaac, August 19
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Snapshot build 20191023)