Cant Install/Uninstall Squid on Pfsesne 2.3.1-RELEASE-p5
-
[12/15] Extracting squid-3.5.19: …......
pkg: cannot rename //usr/local/etc/squid/errors/zh-cn.Bou6cRp1Evpn to //usr/local/etc/squid/errors/zh-cn: Is a directory
[12/15] Extracting squid-3.5.19… done
[12/15] Deleting files for squid-3.5.19: …....... done
Failedcant install and remove SQUID any ideas?
-
If i click services/proxy server it says:
Fatal error: Call to a member function read() on boolean in /etc/inc/pfsense-utils.inc on line 506 Call Stack: 0.0000 121064 1. {main}() /usr/local/www/pkg_edit.php:0 0.0200 1120476 2. eval('squid_before_form_general($pkg);') /usr/local/www/pkg_edit.php:142 0.0201 1121956 3. squid_before_form_general() /usr/local/www/pkg_edit.php(142) : eval()'d code:1 0.0201 1122064 4. get_dir() /usr/local/pkg/squid.inc:284 PHP ERROR: Type: 1, File: /etc/inc/pfsense-utils.inc, Line: 506, Message: Call to a member function read() on boolean
-
Hi,
You can edit /etc/inc/pfsense-utils.inc
Find:
function get_dir($dir) { $dir_array = array(); $d = dir($dir); while (false !== ($entry = $d->read())) { array_push($dir_array, $entry); } $d->close(); return $dir_array; }Replace with:
function get_dir($dir) { $dir_array = array(); $d = dir($dir); if(!is_object($d)) { return array(); } while (false !== ($entry = $d->read())) { array_push($dir_array, $entry); } $d->close(); return $dir_array; }This will fix that specific error.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register LoginPrivacy Policy · Cookie Policy