-
☆ A M B ☆
- 476 Posts
Is there a way to turn off the warning altogether? I’m not sure exactly which document it’s in, but if anyone does know, I’d love to comment out the code that puts out that warning. The warning is not an issue that affects the sites I have, so it turns into one of those things that bugs my clients which in turn means they’re going to bug me about it

Otherwise, thnx for the upgrade!
Precision Web Development ... SmashStack.com
Try commenting out lines 24,25,26,27 of manager/includes/config_check.inc.php and see if that does it.
-
☆ A M B ☆
- 476 Posts
Try commenting out lines 24,25,26,27 of manager/includes/config_check.inc.php and see if that does it.
I tried that and it produced an error so I then removed the comments and then reuploaded the config_check.inc.php and the Configuration warning message disappeared which was my initial goal. I’m not entirely sure why that happened, but the warning message is gone now even though I uncommented those lines...weird.
Precision Web Development ... SmashStack.com
-
☆ A M B ☆
- 24,524 Posts
I’m sure the next upgrade will be able to deal with this in some way; have a "don’t show this again" checkbox on the error page maybe? Only show it to #1 admin user?
-
☆ A M B ☆
- 476 Posts
I’m sure the next upgrade will be able to deal with this in some way; have a "don’t show this again" checkbox on the error page maybe? Only show it to #1 admin user?
That’d be a nice function for sure.
Precision Web Development ... SmashStack.com
-
☆ A M B ☆
- 24,524 Posts
For now, I have a very simple plugin; it uses the OnManagerWelcomeHome event and contains one line:
$modx->placeholders['config_display'] = 'none';
And *poof* no more red Configuration tab!
You could fiddle with this and make it only if the user is not #1 Admin user, or anything else you wanted.
-
☆ A M B ☆
- 24,524 Posts
Ok, here’s a more selective plugin that just removes the GD and Zip error. It’s really not a good idea to be removing all errors; one of them might be important. Remove the leading <?php tag if you use this.
<?php
// turn it into an array for easier handling,
//there are too many HTML tags and line endings to work directly with the error string
$errors = explode('Configuration warning', $modx->placeholders['config_check_results']);
// dig through the array for the GD and Zip warning
foreach($errors as $key=>$value) {
if(strpos($value, 'GD and Zip') !==false) $gdkey = $key;
}
//drop the GD and Zip warning
unset($errors[$gdkey]);
// the first element will be the error list heading
if(count($errors)>1) {
// put it back together
$string = implode('Configuration warning', $errors);
// replace the error message
$modx->placeholders['config_check_results'] = $string;
} else {
// no other errors, don't show the tab at all
$modx->placeholders['config_display'] = 'none';
}
return;
-
☆ A M B ☆
- 711 Posts
Hi,
For any Onesmarthost customers we will be updating our servers PHP Configuration late this evening to enable PHP Zip support which should remove this warning.
Aaron