Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

PHP standards #27

Closed
kdauzickas opened this issue Sep 19, 2012 · 2 comments
Closed

PHP standards #27

kdauzickas opened this issue Sep 19, 2012 · 2 comments
Labels
Milestone

Comments

@kdauzickas
Copy link

Genghis is failing on servers where php warnings/notices are displayed. Call to /geghis.php/servers spews out this:

Notice: Undefined index: databases in genghis.php on line 14

Warning: array_map(): Argument #2 should be an array in genghis.php on line 14

Notice: Undefined index: totalSize in genghis.php on line 14

Usually this is harmless but because the js part is expecting JSON these messages brake the script.

Possible sollutions: following strict standards or error_reporting(0);

@bobthecow
Copy link
Owner

I use strict standards :)

I've seen this bug before, but only as a side effect of #16. Genghis doesn't handle non-privileged accounts very well. This will be fixed in v2.1.

@bobthecow
Copy link
Owner

Closing as a dupe of #16. If this isn't the case, feel free to reopen.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants