geosmarty / geocore-community

Geocore open sourced venture
MIT License
0 stars 0 forks source link

Error changing username and password #15

Open geosmarty opened 1 year ago

geosmarty commented 1 year ago

joselinho222 commented Nov 27, 2022

Error: Non-static method geoPC::get_hashed_password() cannot be called statically in /home2/admin/admin_authentication_class.php:474 Stack trace:

0 /home2/admin_authentication_class.php(519): Admin_auth->update_admin_login(Object(DataAccess), Array)

https://github.com/geodesicsolutions-community/geocore-community/issues/1 /home2/admin/php5_classes/Admin.class.php(475): Admin_auth->update_admin_tools_password() https://github.com/geodesicsolutions-community/geocore-community/issues/2 /home2/admin/index.php(16): geoAdmin->load_page() https://github.com/geodesicsolutions-community/geocore-community/issues/3 {main}

geosmarty commented 1 year ago

It really depends on the software and php versions you are attempting to use. PHP 8.0 no longer allows to call non-static class methods with the static call operator, so you need to get an instance of geoPC::get_hashed_password() . Unfortunately this script needs more work for php8 environments.