Javascript and you

Discuss the development of future releases of phpBB (phpBB 3.x minor releases) and MODing/Coding related questions.
User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Javascript and you

Postby Obsidian » 07 Sep 2009, 16:47

Is that what you use to generate the whois listing live, for the AJAX refresh? That's what it pulls from?

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Javascript and you

Postby RMcGirr83 » 07 Sep 2009, 17:00


User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Javascript and you

Postby Obsidian » 07 Sep 2009, 17:26

There is something else that is running within the page that is causing this, looks like. You need to check all your break; calls, see if there is one missing. Also, you may need to introduce a call to exit_handler();

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Javascript and you

Postby RMcGirr83 » 07 Sep 2009, 18:03

Damian,

Really want to thank you for sticking with me through this.

[url=http://rmcgirr83.org/mchat/mchat_ajax_mini.js]here is the current js file[/url]

If you wouldn't mind taking a look. It's from taking over the mini chat mod released at phpbb.com but my js skillz are weak and I'm just trying to follow the logic.

It has changed since the last time I code pasted because I was thinking about what you had said about something else already being run...so tried to add the ajax call for the stats within the refresh function of the js file. The result is the same :(.

FWIW, the php file can be found [url=http://www.rmcgirr83.org/pastebin.php?mode=view&s=8]here[/url].

User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Javascript and you

Postby Obsidian » 07 Sep 2009, 18:03

It's more about the PHP file. I checked it directly, and the output included that extra HTML -- somewhere along the line that is getting echoed or something.

Will take a look later -- I have dishes to do. :roll:

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Javascript and you

Postby RMcGirr83 » 07 Sep 2009, 18:11


User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Javascript and you

Postby Obsidian » 07 Sep 2009, 18:48


User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Javascript and you

Postby RMcGirr83 » 07 Sep 2009, 19:20


User avatar
Obsidian
Supporter
Supporter
Posts: 736
Joined: 13 May 2008, 15:20
Real name: Damian
Contact:

Re: Javascript and you

Postby Obsidian » 07 Sep 2009, 19:43

Odd. That makes me think the JS timer isn't resetting itself now -- you may have caused an issue with JS edits there.

As far as that code goes, just do a diff between my code and yours, and revert back to what you had earlier. That may work out a little better.

User avatar
RMcGirr83
Past Contributor
Past Contributor
Posts: 6243
Joined: 30 Nov 2006, 14:23
Real name: Rich McGirr
[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Re: Javascript and you

Postby RMcGirr83 » 09 Sep 2009, 10:29

Hey Damian,

Just a shout to let you know got it sorted...really appreciate your help btw.

Thanks. :)


[phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable

Return to “phpBB Development discussion”

Who is online

Users browsing this forum: No registered users and 6 guests