- Rule not working ? Check it is enabled in the rules manager !
- If you like AltaUserPoints , Thank you for rating it at the JED:
extensions.joomla.org/extensions/extensi...stems/altauserpoints

Error in PHP 7.2.x

More
4 years 8 months ago #43798 by cpaschen
Error in PHP 7.2.x was created by cpaschen
When running AltaUserPoints on PHP 7.2.14 (on localhost) we are getting the following error when trying to manually add custom points to a user:

Warning: count(): Paremter must be an array or an object that implements Countable in C:\wamp64\...\administrator\components\com_altauserpoints\controller.php on line1133

Downgrading to PHP 7.1.9 allows AUP to work properly in that case; however, we have other extensions that require 7.2.x.

Is there a known patch for this?

We are using AUP 1.1.12

Please Log in or Create an account to join the conversation.

More
4 years 8 months ago #43800 by nordmograph
Replied by nordmograph on topic Error in PHP 7.2.x
Thank you for reporting this.
However, such 'warning' would not prevent you from using the feature. Especialy if it only shows in the backend.

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

More
4 years 8 months ago #43801 by cpaschen
Replied by cpaschen on topic Error in PHP 7.2.x
The error is happening in the front-end (when error notices are displayed).

Yes, we can 'function' but obviously this code needs to be updated to properly work in PHP 7.2.

My concern is that the code is not correct and may actually break in future PHP updates.

Please Log in or Create an account to join the conversation.

More
4 years 8 months ago #43802 by cpaschen
Replied by cpaschen on topic Error in PHP 7.2.x
Sorry ... that was in the BACK END not front. Got my error reporting mixed up.

Please Log in or Create an account to join the conversation.

More
4 years 8 months ago #43803 by cpaschen
Replied by cpaschen on topic Error in PHP 7.2.x
Also ... the issue also is that we need to have error reporting enabled while testing our own custom component development, but have to disable it every time we need to add any custom points (for testing).
That just makes testing any integration with AUP a bit of a hassle.

Please Log in or Create an account to join the conversation.

More
4 years 8 months ago #43804 by nordmograph
Replied by nordmograph on topic Error in PHP 7.2.x
You should fix this monving line
1131
$cid = implode(",", $cid);

to 1137 (just before the $view var)
Let me know if this is ok for you.

- Need help? Post the URL of the related page (eventualy as confidential info), it will help solve your issue faster.
- An error, notice or warning? report the exact message including the line number
- If you get a white page , enable error reporting and / or check your server error logs.

Please Log in or Create an account to join the conversation.

Time to create page: 0.342 seconds
Powered by Kunena Forum
Disclaimer: Nordmograph is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.