Previous Thread
Next Thread
Print Thread
Hop To
Incompatibility: Twitter profile widget
#242348 03/26/2011 6:01 PM
Joined: Jun 2004
Posts: 207
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
cascadeclimbers #242351 03/26/2011 9:41 PM
Joined: Apr 2007
Posts: 3,940
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,940
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
cascadeclimbers #245221 08/29/2011 9:53 AM
Joined: Jul 2006
Posts: 116
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
cascadeclimbers #245233 08/29/2011 7:45 PM
Joined: Jun 2004
Posts: 207
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
cascadeclimbers #245235 08/29/2011 9:03 PM
Joined: Jul 2006
Posts: 116
member
Offline
member
Joined: Jul 2006
Posts: 116
Thanks! Will look forward to your reply!

Re: Incompatibility: Twitter profile widget
cascadeclimbers #245242 08/30/2011 1:16 AM
Joined: Jun 2004
Posts: 207
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
cascadeclimbers #245291 08/31/2011 5:42 AM
Joined: Jul 2006
Posts: 116
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
cascadeclimbers #245302 08/31/2011 7:02 PM
Joined: Jun 2004
Posts: 207
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
cascadeclimbers #245309 09/01/2011 8:15 AM
Joined: Jul 2006
Posts: 116
member
Offline
member
Joined: Jul 2006
Posts: 116
OK, thanks again.

SirDude, any comment?

Re: Incompatibility: Twitter profile widget
cascadeclimbers #245310 09/01/2011 11:51 AM
Joined: Apr 2007
Posts: 3,940
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,940
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
cascadeclimbers #245322 09/02/2011 4:53 AM
Joined: Jul 2006
Posts: 116
member
Offline
member
Joined: Jul 2006
Posts: 116
The "problem site" can be seen at http://virtuafighter.com smile

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

Re: Incompatibility: Twitter profile widget
cascadeclimbers #245326 09/03/2011 9:36 AM
Joined: Jul 2006
Posts: 116
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
cascadeclimbers #245327 09/03/2011 11:24 AM
Joined: Jun 2006
Posts: 15,938
Likes: 27
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,938
Likes: 27
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, I Find Rocks, 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
cascadeclimbers #245328 09/03/2011 11:31 AM
Joined: Apr 2007
Posts: 3,940
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,940
yup.. tried again here, same thing

Re: Incompatibility: Twitter profile widget
cascadeclimbers #245339 09/04/2011 10:19 AM
Joined: Jul 2006
Posts: 116
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
cascadeclimbers #245340 09/04/2011 10:34 AM
Joined: Jun 2006
Posts: 1,344
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
cascadeclimbers #245341 09/04/2011 10:35 AM
Joined: Apr 2007
Posts: 3,940
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,940
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
cascadeclimbers #245343 09/04/2011 12:10 PM
Joined: Jun 2006
Posts: 15,938
Likes: 27
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,938
Likes: 27
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, I Find Rocks, 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
cascadeclimbers #245344 09/04/2011 12:28 PM
Joined: Apr 2007
Posts: 3,940
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,940
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
cascadeclimbers #245345 09/04/2011 4:29 PM
Joined: Jun 2006
Posts: 15,938
Likes: 27
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,938
Likes: 27
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, I Find Rocks, 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
cascadeclimbers #245346 09/04/2011 4:39 PM
Joined: Mar 2007
Posts: 522
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
SD #245350 09/04/2011 9:00 PM
Joined: Jul 2006
Posts: 116
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
cascadeclimbers #245352 09/05/2011 12:48 AM
Joined: Jan 2008
Posts: 514
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
cascadeclimbers #245354 09/05/2011 5:46 AM
Joined: Mar 2007
Posts: 522
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
cascadeclimbers #245355 09/05/2011 6:43 AM
Joined: Jul 2006
Posts: 116
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
Myke #245358 09/05/2011 12:12 PM
Joined: Jun 2006
Posts: 15,938
Likes: 27
UBB.threads Developer
Offline
UBB.threads Developer
Joined: Jun 2006
Posts: 15,938
Likes: 27
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, I Find Rocks, 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
cascadeclimbers #245363 09/05/2011 3:31 PM
Joined: Apr 2007
Posts: 3,940
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,940
i consistently get that error too.. it's not a hit/miss deal.


Re: Incompatibility: Twitter profile widget
Gizmo #245384 09/06/2011 6:18 AM
Joined: Jul 2006
Posts: 116
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
cascadeclimbers #245388 09/06/2011 10:38 AM
Joined: Apr 2007
Posts: 3,940
SD Offline
Former Developer
Offline
Former Developer
Joined: Apr 2007
Posts: 3,940
you have a crashed ubbt_REFERRER_LOG table

needs repairing


Re: Incompatibility: Twitter profile widget
cascadeclimbers #245404 09/06/2011 9:23 PM
Joined: Jul 2006
Posts: 116
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
Myke #245519 09/17/2011 3:06 AM
Joined: Jul 2006
Posts: 116
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 3:11 AM.
Re: Incompatibility: Twitter profile widget
cascadeclimbers #245940 09/25/2011 4:03 AM
Joined: Jul 2006
Posts: 116
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
SD #246096 09/30/2011 4:22 AM
Joined: Jul 2006
Posts: 116
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.


Link Copied to Clipboard
ShoutChat Box
Comment Guidelines: Do post respectful and insightful comments. Don't flame, hate, spam.
Recent Topics
[NOTABUG] Report Post bug..
by Morgan - 07/05/2020 1:48 PM
Trial Subscription question.
by Ruben - 07/03/2020 2:34 PM
Unread posts no longer tracked per user...
by KirkW - 06/16/2020 12:21 AM
Max Image file size upload
by jjjjj - 06/10/2020 10:25 PM
Error on Inert into POSTS
by jjjjj - 06/07/2020 8:09 PM
Who's Online Now
3 members (JAISP, Morgan, 1 invisible), 107 guests, and 38 robots.
Key: Admin, Global Mod, Mod
Random Gallery Image
Latest Gallery Images
3D Creations
3D Creations
by JAISP, December 30
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