Ticket #2373 (closed Bugs: fixed)

Opened 6 years ago

Last modified 6 years ago

Warning when updating modules with php 5.2.4

Reported by: ThomasHawk2_ Assigned to: p_lindheimer
Priority: minor Milestone: 2.4
Component: Core Version: 2.3.1
Keywords: Cc:
Confirmation: Confirmed Distro:
Backend Engine: All Distro Ver:
Backend Ver: SVN Revision (if applicable):

Description

When I update modules in module administration I have the warnings :

Warning: array_push() [function.array-push]: Cannot add element to the array as the next element is already occupied in /srv/www/html/admin/functions.inc.php on line 1415

Warning: array_push() [function.array-push]: Cannot add element to the array as the next element is already occupied in /srv/www/html/admin/functions.inc.php on line 1415

Warning: array_push() [function.array-push]: Cannot add element to the array as the next element is already occupied in /srv/www/html/admin/functions.inc.php on line 1415

Warning: array_push() [function.array-push]: Cannot add element to the array as the next element is already occupied in /srv/www/html/admin/functions.inc.php on line 1415

Warning: array_push() [function.array-push]: Cannot add element to the array as the next element is already occupied in /srv/www/html/admin/functions.inc.php on line 1415

Warning: array_push() [function.array-push]: Cannot add element to the array as the next element is already occupied in /srv/www/html/admin/functions.inc.php on line 1415

Change History

09/10/07 11:04:28 changed by p_lindheimer

  • confirmation changed from Unreviewed to Need testing.

that should be harmless. Usually means you have warning levels set too high. However, we still like to get rid of all warnings so try applying the following to your functions.inc.php and if the error goes away, I'll put it in:

Index: functions.inc.php
===================================================================
--- functions.inc.php   (revision 5004)
+++ functions.inc.php   (working copy)
@@ -1412,7 +1412,7 @@
        }
        function tagOpen($parser, $name, $attrs) {
                $tag=array("name"=>$name,"attrs"=>$attrs); 
-               array_push($this->arrOutput,$tag);
+               @array_push($this->arrOutput,$tag);
        }
 
        function tagData($parser, $tagData) {

10/23/07 15:38:13 changed by p_lindheimer

  • status changed from new to closed.
  • resolution set to worksforme.

closing due to no feedback.

10/29/07 04:48:04 changed by ThomasHawk2_

Sorry,

I have not seen earlier your comment (I don't know why, but I don't receive email from trac (maybe detected as spam))

Yes this patch correct the problem

Thanks

10/30/07 14:50:32 changed by p_lindheimer

  • status changed from closed to reopened.
  • resolution deleted.

11/02/07 21:20:26 changed by p_lindheimer

  • status changed from reopened to closed.
  • confirmation changed from Need testing to Confirmed.
  • resolution set to fixed.
  • version changed from 2.3.0 to 2.3.1.