Skip to Content Skip to Menu

🌟Discover the Joomla AI Plugin that wrote its own story! - CB Editor Assistant 1.1now for Joomla 3, 4 & 5!
✍️ 5-Day Free Trial, then 🎯 save up to 30% with our 🛍️ Intro Offer (First 50 users, ends Dec. 25th)
🌲 Merry Christmas! Great savings on Professional and Developer Memberships! Get 25% off now with code XMAS-2024!

PHP Deprecated: The each() function is deprecated

  • churruka
  • churruka
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
5 years 2 months ago #314690 by churruka
buenas
estoy usando su complemento
pero el servidor me manda un mensaje de error

PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in public_html/administrator/components/com_uddeim/admin.shared.php on line 705


la linea en concreto es
Code:
while (list($key, $row) = each($value)) {



good
I am using its complement
but the server sends me an error message

PHP Deprecated: The each() function is deprecated. This message will be suppressed on further calls in public_html/administrator/components/com_uddeim/admin.shared.php on line 705

the specific line is
Code:
while (list($key, $row) = each($value)) {

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

5 years 1 month ago - 5 years 1 month ago #315250 by theITfactor
Replied by theITfactor on topic PHP Deprecated: The each() function is deprecated
In /administrator/components/com_uddeim/admin.shared.php

Find (~line 705):
Code:
while (list($key, $row) = each($value)) {

Replace With:
Code:
foreach($value as $key => $row) {

In /components/com_uddeim/bbparser.php

Find (~line 207):
Code:
while (list($emo_txt,$emo_src)=each($message_emoticons)) {

Replace with:
Code:
foreach($message_emoticons as $emo_txt => $emo_src) {
Last edit: 5 years 1 month ago by theITfactor.
The following user(s) said Thank You: Krki

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

  • churruka
  • churruka
  • OFFLINE
  • Posts: 2
  • Thanks: 0
  • Karma: 0
5 years 1 month ago #315413 by churruka
muchas gracias , ya esta corregido


thank you very much, it's already corrected

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

4 years 9 months ago - 4 years 9 months ago #317132 by latorreinfo
Replied by latorreinfo on topic PHP Deprecated: The each() function is deprecated
The each function also occurs (6 times) in public_html/administrator/components/com_uddeim/attachment.php and generates a deprectated warning in PHP.

These are changes I think are needed. I have tested uddeim and can send and receive attachments.

Replace line 43

while (list($key, $value) = each( $tmp_files["tmp_name"] )) {

With

foreach($tmp_files["tmp_name"] as $key => $value) {

Replace line 118

while (list($key, $value) = each( $uploadfile_temppathname )) {

With

foreach($uploadfile_temppathname as $key => $value) {

Replace line 138

while (list($key, $value) = each( $uploadfile_temppathname )) {

With

foreach($uploadfile_temppathname as $key => $value) {

Replace line 165

while (list($key, $row) = each($uploadfile_temppathname)) {

With

foreach($uploadfile_temppathname as $key => $row) {

Replace line 190

while (list($key, $row) = each($value)) {

with

foreach($value as $key => $row) {

Replace line 233

while (list($key, $row) = each($value)) {

with

foreach($value as $key => $row) {
Last edit: 4 years 9 months ago by latorreinfo. Reason: Added changes needed

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

Moderators: beatnantslabbikrileon
Powered by Kunena Forum