Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Anthony`
16
Bug reports / Media section and mobile devices
« on January 9th, 2013, 03:04 AM »
Hello! I noticed there was a bit of positioning errors while viewing the plugins page on my mobile device. Attached screeny below. :)
17
To be honest I think having scope defined for fields in a class (especially in PHP) where it can be pretty forgetful for someone coming from Java would be good for consistency and readability, but could also remind forgetful people (like me :whistle:) like me who forget PHP seems to do it backwards. -_- Plus, it isn't a big deal just to place scope is it?

Yay for defined scope!!!!
18
Bug reports / Re: IE Text Highlighting issue in Posts
« on November 27th, 2012, 10:00 PM »
Yes, it does as well.
19
Archived fixes / Re: Session writing
« on November 10th, 2012, 05:33 PM »
I've been doing some research on this issue... Is APC being used? What version?
20
Archived fixes / Re: Session writing
« on November 9th, 2012, 10:30 PM »
Interesting. I've never encountered this before ever but I will keep an eye out for it.
21
Off-topic / Re: Question of the day
« on November 8th, 2012, 10:21 PM »
Quote from Arantor on November 8th, 2012, 10:07 PM
Um, it's not just IE, it doesn't fit properly in Chrome either, though I run my window at about 1000px wide instead of full screen and that's just unnecessary to have popups and so on.
I see! I've used FF when I ran into this circumstance so I never thought Chrome would be affected as well.
22
Bug reports / Re: Maintenance Task Hangs
« on November 8th, 2012, 10:19 PM »
Has this been fixed yet?
23
Archived fixes / Re: open_basedir and Load Balancing Page Errors
« on November 8th, 2012, 10:18 PM »
Quote from Nao on November 8th, 2012, 08:48 AM
So, I've replaced this internally with @shell_exec('uptime')... Can you do the same and tell me if it works this time..?
(There's also another occurrence in Load.php, BTW. Done too.)
Still get a blank page and when I take off supression:
Quote
Warning: shell_exec() has been disabled for security reasons in /.../wedge/Sources/ManageServer.php on line 474
Quote from Arantor on November 8th, 2012, 04:14 PM
I don't get why it's white-screening instead of just giving you an actual error, though.
Well, I can see why it wouldn't output the error because it's supressed of course but I don't know why it would just hang PHP like this... Do all shell commands do this? -_-

24
Off-topic / Re: Question of the day
« on November 8th, 2012, 10:01 PM »
I don't like the latest versions of phpMyAdmin either because I think they've pretty much bloated the UI. I wouldn't mind so much if the popups would atleast fit properly on my browser... But then again it's my fault for using IE. ;)
25
Archived fixes / Re: open_basedir and Load Balancing Page Errors
« on November 8th, 2012, 04:16 AM »
I went back into the code and the cause of the blank page seems to be the backtick operator executing the shell command here:
Code: [Select]
elseif (($settings['load_average'] = @`uptime`) !== null && preg_match('~load averages?: (\d+\.\d+), (\d+\.\d+), (\d+\.\d+)~i', $settings['load_average'], $matches) !== 0)

I suspect it's somewhat like my experience in an earlier bug report with exec(?) hanging on me and producing a blank page as well.

Again, removing the supression operator and I get the following error:
Quote
Warning: shell_exec() has been disabled for security reasons in /.../wedge/Sources/ManageServer.php on line 474
26
Quote from Arantor on November 8th, 2012, 12:09 AM
Have you *saved* it from your profile?
Of course! Even went back again to re-save it.
27
Archived fixes / Warn on new replies made while posting not working
« on November 8th, 2012, 12:03 AM »
When I enable the "Warn on new replies made while posting." in my profile, when I go to reply to a topic while another user posted before me, I don't get the warning notice. This doesn't work if I attempt to preview it either (was curious).
28
Archived fixes / Re: open_basedir and Load Balancing Page Errors
« on November 7th, 2012, 11:14 PM »
As a matter of fact I do too.
29
Archived fixes / open_basedir and Load Balancing Page Errors
« on November 7th, 2012, 10:31 PM »
Trying to view the page shows a blank page.

I investigated and found the cause on line 471 in ManageServer.php,
Code: [Select]
$settings['load_average'] = @file_get_contents('/proc/loadavg');

When I remove the supression operator, I get the following errors,
Quote
Warning: file_get_contents() [function.file-get-contents]: open_basedir restriction in effect. File(/proc/loadavg) is not within the allowed path(s): (/home/...:usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in /.../wedge/Sources/ManageServer.php on line 471

Warning: file_get_contents(/proc/loadavg) [function.file-get-contents]: failed to open stream: Operation not permitted in /.../wedge/Sources/ManageServer.php on line 471
30
Archived fixes / Re: Problem with pruning logs
« on November 7th, 2012, 10:01 PM »
I can confirm this. The issue,
Code: [Select]
wesql::query('
TRUNCATE {db_prefix}log_online, {db_prefix}log_floodcontrol');
Should be seperated for the two tables like so,
Code: [Select]
wesql::query('
TRUNCATE {db_prefix}log_online');

wesql::query('
TRUNCATE {db_prefix}log_floodcontrol');