Giter Club home page Giter Club logo

Comments (10)

Elix-g avatar Elix-g commented on July 18, 2024

Hi,

how about this (untested)?

replace whole line 147 in wmi_queries.php with:
foreach($_POST as $var => $val) {

replace whole line 122 in wmi_accounts.php with:
foreach($_POST as $var => $val) {

Just the DB error should remain.

from plugin_wmi.

netniV avatar netniV commented on July 18, 2024

There are a couple of depreciated bits with PHP 7.2, plus we need to also check on MySQL reserved words too as there have been a number of changes to both PHP/MySQL/MariaDB that have caused bugs where things worked previously.

What you have identified is normally one of those elements 👍

from plugin_wmi.

Elix-g avatar Elix-g commented on July 18, 2024

Hi,

deleting a stored query seems to work. Nonetheless, some error message in clog:

2019/07/22` 12:00:01 - CMDPHP PHP ERROR Backtrace: (/plugins/wmi/wmi_queries.php[97]:actions_queries(), /plugins/wmi/wmi_queries.php[150]:each(), CactiErrorHandler())
2019/07/22 12:00:01 - ERROR PHP DEPRECATED in Plugin 'wmi': The each() function is deprecated. This message will be suppressed on further calls in file: /data/apache2_wwwroot/plugins/wmi/wmi_queries.php on line: 150

Deleting stored credentials still doesn't work. Errors in clog:

2019/07/22 12:02:46 - CMDPHP PHP ERROR Backtrace: (/plugins/wmi/wmi_accounts.php[76]:actions_accounts(), /plugins/wmi/wmi_accounts.php[122]:each(), CactiErrorHandler())
2019/07/22 12:02:46 - ERROR PHP DEPRECATED in Plugin 'wmi': The each() function is deprecated. This message will be suppressed on further calls in file: /xxxxxxxxxxxxx/plugins/wmi/wmi_accounts.php on line: 122

from plugin_wmi.

netniV avatar netniV commented on July 18, 2024

Download the latest version as this should now be resolved in 0db7d13

from plugin_wmi.

Elix-g avatar Elix-g commented on July 18, 2024

Confirmed, errors are gone and clog is clean. But though, deleting Authentications still doesn't work. It doesn't throw any error message anymore, but the Continue button has no function.

from plugin_wmi.

cigamit avatar cigamit commented on July 18, 2024

Yea, totally missed the each errors. I'm doing my development on a dated version of PHP, so did not see them. I'm not sure I know what you mean about Continue button. Could this be the authentication tab?

from plugin_wmi.

cigamit avatar cigamit commented on July 18, 2024

Yea, it was the accounts tab. That is now fixed too, as should $ signs in the password or any other special character for that matter now.

from plugin_wmi.

Elix-g avatar Elix-g commented on July 18, 2024

I'm sorry, I was unprecise. Indeed I meant the Continue button in the confirmation dialogue that appears when deleting an Authentication.
Deletion now works properly, thanks a lot! Just another detail: After an Authentication has been deleted, I'm forwarded to a site where something is missing ;-) Please see the following picture:

delete_wmi_account

URL that is being called is https://xxxxxxxxxxxx/plugins/wmi/wmi_accounts.php?header=false.

Setting the header attribute to true and everything looks normal.

from plugin_wmi.

netniV avatar netniV commented on July 18, 2024

Yea, it needs the header=false taking off.

from plugin_wmi.

Elix-g avatar Elix-g commented on July 18, 2024

Perfect, works like a charm now. Many thanks again for your swift reaction!

BR,
Elix

from plugin_wmi.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.