[Plugin: Statrix] Can’t Exclude Users
-
In the Statrix > Options section, I highlight the admin user in the Exclude Users box and click the >> button. The error that pops up in Firebug is “moveSelectedOptions is not defined”. Any ideas how to fix that?
Also, there are some minor bugs, such as the graph not displaying. Any ideas?
Thanks!
Mark
-
Regarding both of your problems, I think that your blog doesn’t include Statrix’s javascript file properly. And I think I know where the problem might be.
Can you just go on your blog Settings and tell me, is your WordPress address (URL) different than your Blog address (URL)?
Thank you. π
The blog address is blog.domain.org and the WordPress address is blog.domain.org/wp-admin.
Here’s how it includes the javascript file:
Does that help?
No, that’s not what i meant.
When you go to Site Admin->Settings->General, are these two settings different?
http://e-sense.clearcode.org/wp_address_settings.pngOh, gotcha. Nope, the addresses are the same. Could it be a permissions issue?
Hmm.. OK. Can you open the Statrix javascript include in your browser (be sure you are logged as admin first):
http://blog.domain.org/wp-content/plugins/statrix/resources/statrix.js.php?statrix_action=optionsand paste me the result?
The result is:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.Please contact the server administrator, webmaster@blog.domain.org and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
edit: if it’s error 500, that means that there would be a more descriptive error message in your http server’s error log.
[2008-08-06 17:15:47]: error: directory is writable by others: ([blog path]/wp-content/plugins/statrix/resources)
and
[Wed Aug 6 17:15:47 2008] [error] [client 199.73.1.1] Premature end of script headers: [blog path]/wp-content/plugins/statrix/resources/statrix.js.php
Thanks so much for your help!
Well… OK. So there are two errors. Let’s fix the easy one first. You have to change your resources directory’s permissions. You should change the permissions of all Statrix directories and files, in case that they are writable by others too.
If your server is running Linux, you change the permissions recursively executing this:
chmod 755 wp-content/plugins/statrix -RAfter you do this, please test again and write me the result. I doubt that it will start working by fixing only this, but we could try. π
If it doesn’t start working after the permissions fix, we will continue with the second error.
Thanks for the tip. I have done that. The permissions were 777, so I updated them to 755.
I checked the error log and it’s empty, but I still get the 500 error. Shall we tackle problem 2?
Thanks!
OK, now you should try to execute the Statrix javascript file trough command line.
Go in wp-content/plugins/statrix/resources and execute this:php statrix.js.phpAfter, paste me the result here. If it’s too long, you can send me an e-mail (esense -at- gmail -dot- com).
I’m not going to be able to do that, I don’t think. This server is hosted remotely by siteground.com. I don’t think I can access it by command line. Is there anything else I can do?
Thanks!
Has your hosting provider disabled the use of the system function?
If not, you could create a file.php with such content:<?php system("php statrix.js.php"); ?>Upload it in wp-content/plugins/statrix/resources and execute it trough your browser.
Here’s the result:
X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html X-Powered-By: PHP/5.2.5 Content-type: text/html
Hmmmmm… this is very strange. Honestly, I have no idea what could be the cause. We can try to debug it though.
But we are not able to do it here, we need a real-time conversation. Do you mind if you contact me at gtalk? You know my e-mail.
The topic ‘[Plugin: Statrix] Can’t Exclude Users’ is closed to new replies.