Closed gebster closed 6 years ago
Did you run bower install
and composer update
as per the docs?
same error here. Did all steps. yum install -y nodejs composer bower install composer update
[Fri Mar 02 13:59:27.846062 2018] [:error] [pid 21577] [client 192.168.10.39:51516] PHP Fatal error: require_once(): Failed opening required '/usr/share/cacti/plugins/weathermap/lib/../vendor/autoload.php' (include_path='.:/usr/share/pear:/usr/share/php') in /usr/share/cacti/plugins/weathermap/lib/all.php on line 12, referer: http://cacti/cacti/plugins.php
# ls -l vendor/
total 0
drwxr-xr-x 5 root root 137 Mar 2 13:58 jquery
drwxr-xr-x 2 root root 151 Mar 2 13:58 jquery-fastlivefilter
drwxr-xr-x 6 root root 300 Mar 2 13:58 jquery-idletimer
cacti-1.1.36-1.el7.noarch php-5.4.16-43.el7_4.x86_64
Oh, I see another error during composer update : `# composer update Do not run Composer as root/super user! See https://getcomposer.org/root for details Loading composer repositories with package information Updating dependencies (including require-dev) Your requirements could not be resolved to an installable set of packages.
Problem 1
Basically, that means there is a minimum requirement of 5.6 for the library component PHPUnit used by Weathermaps, as opposed to the 5.4 for base cacti.
I see. Upgrading PHP to 7.2.3 and run composer install again. Much better. dependencies installed and autoload.php present.
You should set a minimum requirement for php5.6 on the main page.
I got another unrelated error. But for me it's ok with this one. Letting the original poster decide to close or not.
You can avoid a lot of the composer dependencies if you are not intending to contribute code.
composer update --no-dev
should dramatically reduce the number of dependencies, and especially ones that want current php like phpunit.
But also, in CHANGES
: "BREAKING CHANGES: Weathermap now makes use of PHP 5.6 features,". I will try to make the change to composer.json to reflect this too. And probably something to explicitly check for vendor/autoload.php and tell you to read the README :-)
I saw no mention of any PHP version in the README... A "minimum requirements" section would be nice.
Given the above, I would suggest telling them to read the CHANGES and README @howardjones ;-)
For the release version, there's a box on the page with the download link. I will update both.
Thanks guys, I got the bower installed correctly after a few php5 package installs.
apt-get php5-sqlite3 apt-get install php5-sqlite apt-get install php5-xsl
Did have a Duplicate column name error right after but other the night time it must of cleared itself.
03/01/2018 15:58:26 - ERROR PHP ERROR in Plugin 'weathermap': Uncaught exception 'PDOException' with message 'SQLSTATE[42S21]: Column already exists: 1060 Duplicate column name 'usergroupid'' in /var/www/html/cacti/plugins/weathermap/lib/Weathermap/Integrations/MapManager.php:788 Stack trace:
thrown in file: /var/www/html/cacti/plugins/weathermap/lib/Weathermap/Integrations/MapManager.php on line: 788 03/01/2018 15:58:26 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler)(/lib/functions.php: 4629 cacti_debug_backtrace) 03/01/2018 15:58:26 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'weathermap' 03/02/2018 08:29:31 - AUTH LOGIN: User 'admin' Authenticated via Authentication Cookie
Thing morning I was able to into.
New install of Cacti 1.1.36 and Weathermap. I got Weathermap from github. git clone https://github.com/howardjones/network-weathermap/
When trying to install I get the following errors.
03/01/2018 14:03:13 - ERROR PHP WARNING in Plugin 'weathermap': require_once(/var/www/html/cacti/plugins/weathermap/lib/../vendor/autoload.php): failed to open stream: No such file or directory in file: /var/www/html/cacti/plugins/weathermap/lib/all.php on line: 12 03/01/2018 14:03:13 - CMDPHP PHP ERROR WARNING Backtrace: (/plugins.php: 74 api_plugin_install)(/lib/plugins.php: 479 include_once)(/plugins/weathermap/setup.php: 11 require_once)(/plugins/weathermap/setup10.php: 19 require_once)(/plugins/weathermap/lib/all.php: 12 require_once)(/plugins/weathermap/lib/all.php: 12 CactiErrorHandler)(/lib/functions.php: 4586 cacti_debug_backtrace) 03/01/2018 14:03:13 - ERROR PHP COMPILE_ERROR in Plugin 'weathermap': require_once(): Failed opening required '/var/www/html/cacti/plugins/weathermap/lib/../vendor/autoload.php' (include_path='.:/usr/share/php:/usr/share/pear') in file: /var/www/html/cacti/plugins/weathermap/lib/all.php on line: 12 03/01/2018 14:03:13 - CMDPHP PHP ERROR Backtrace: (CactiShutdownHandler)(/lib/functions.php: 4629 cacti_debug_backtrace) 03/01/2018 14:03:13 - CMDPHP ERRORS DETECTED - DISABLING PLUGIN 'weathermap'
When looking at the directories the vendor one does not exist.