Menu

#855 Warning: Invalid argument supplied for foreach()

closed
None
5
2006-04-04
2006-03-14
VSC55
No

-- phpMyAdmin SQL Dump
-- version 2.8.0
-- http://www.phpmyadmin.net
--
-- Servidor: localhost
-- Tiempo de generación: 14-03-2006 a las 22:01:56
-- Versión del servidor: 4.1.14
-- Versión de PHP: 5.0.5-pl5-gentoo
--
-- Base de datos: `bind`
--

-- --------------------------------------------------------

--
-- Estructura de tabla para la tabla `5_168_192`
--

CREATE TABLE `5_168_192` (
`name` varchar(128) default NULL,
`ttl` bigint(20) unsigned default '3600',
`rdtype` varchar(128) NOT NULL default '',
`rdata` varchar(128) NOT NULL default ''
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Volcar la base de datos para la tabla `5_168_192`
--

INSERT INTO `5_168_192` (`name`, `ttl`, `rdtype`,
`rdata`) VALUES ('5.168.192.in-addr.arpa', 3600, 'SOA',
'ns2.dominio.net root.dominio.net 1 1H 15M 14D 12H'),
('5.168.192.in-addr.arpa', 3600, 'NS', 'ns2.dominio.net'),
('40.5.168.192.in-addr.arpa', 3600, 'PTR',
'redFon.dominio.net'),
('20.5.168.192.in-addr.arpa', 3600, 'PTR',
'redHome.dominio.net'),
('254.5.168.192.in-addr.arpa', 3600, 'PTR',
'812.dominio.net');

1. Le damos a la opción de editar la primera línea que es:
"('5.168.192.in-addr.arpa', 3600, 'SOA',
'ns2.dominio.net root.dominio.net 1 1H 15M 14D 12H')"

2. Generamos todas las modificaciones que deseamos por
ejemplo el campo “name” lo dejamos de la siguiente forma:
'5.168.192.in-addr.arpaA'

3. Y al darle al botón de Continuar vemos que en la
siguiente página sale el siguiente error:

Warning: Invalid argument supplied for foreach() in
/home/www/mysql.dominio.net/htdocs/phpMyAdmin-2.8.0/tbl_replace.php
on line 155

Warning: Cannot modify header information - headers
already sent by (output started at
/home/www/mysql.dominio.net/htdocs/phpMyAdmin-2.8.0/tbl_replace.php:155)
in
/home/www/mysql.dominio.net/htdocs/phpMyAdmin-2.8.0/libraries/common.lib.php
on line 103

Discussion

  • Michal Čihař

    Michal Čihař - 2006-03-14

    Logged In: YES
    user_id=192186

    Could you please describe erorr in English?

     
  • VSC55

    VSC55 - 2006-03-14

    Logged In: YES
    user_id=1318004

    1. We give the option to publish forward edge that is: "('
    5.168.192.in-addr.arpá, 3600, ' SOÁ, ' ns2.dominio.net
    root.dominio.net 1 1H 15M 14D 12H ')"
    2. We generated all the modifications that we wished for
    example the field "name" we left it of the following form:
    “5.168.192.in-addr.arpaA”
    3. And when giving him to the button To continue we see
    that in the following page it leaves the following error:

    Warning: Invalid argument supplied for foreach() in
    /home/www/mysql.dominio.net/htdocs/phpMyAdmin-2.8.0/tbl_replace.php
    on line 155

    Warning: Cannot modify header information - headers
    already sent by (output started at
    /home/www/mysql.dominio.net/htdocs/phpMyAdmin-2.8.0/tbl_replace.php:155)
    in
    /home/www/mysql.dominio.net/htdocs/phpMyAdmin-2.8.0/libraries/common.lib.php
    on line 103

     
  • VSC55

    VSC55 - 2006-03-14

    Logged In: YES
    user_id=1318004

    remplace ' SOÁ, by ' SOA',

     
  • VSC55

    VSC55 - 2006-03-14

    Logged In: YES
    user_id=1318004

    If the translation is not understood please it excuses the
    annoyances I have will try to write up it better.

     
  • Marc Delisle

    Marc Delisle - 2006-03-18

    Logged In: YES
    user_id=210714

    Are you running an old version of Zend Optimizer?

     
  • VSC55

    VSC55 - 2006-03-18

    Logged In: YES
    user_id=1318004

    PHP Version 5.0.5-pl5-gentoo with Hardening-Patch 0.4.8
    Zend Extension 220040412
    Zend Engine v2.0.5

    php.ini
    zend.ze1_compatibility_mode = Off

     
  • VSC55

    VSC55 - 2006-03-18
    • milestone: 577347 -->
     
  • Marc Delisle

    Marc Delisle - 2006-03-19
    • assigned_to: nobody --> lem9
     
  • Marc Delisle

    Marc Delisle - 2006-03-19

    Logged In: YES
    user_id=210714

    If I understand correctly, you browse the data, click to
    edit the row containing SOA, change something in the name
    column and save; then you see a warning.

    I cannot reproduce this problem. Can you try it again
    without the Hardening-patch?
    If not, do some tracing for me. In tbl_replace.php, just
    before line 155, add this
    echo "trace<pre>"; print_r($me_fields); echo "</pre>";

     
  • Marc Delisle

    Marc Delisle - 2006-03-20

    Logged In: YES
    user_id=210714

    Moved to support.

     
  • Marc Delisle

    Marc Delisle - 2006-03-20
    • labels: 438951 -->
    • status: open --> pending
     
  • SourceForge Robot

    Logged In: YES
    user_id=1312539

    This Tracker item was closed automatically by the system. It was
    previously set to a Pending status, and the original submitter
    did not respond within 14 days (the time period specified by
    the administrator of this Tracker).

     
  • SourceForge Robot

    • status: pending --> closed
     
  • VSC55

    VSC55 - 2006-04-04

    Logged In: YES
    user_id=1318004

    Yes, the problem seems to be due to pache Hardening-Patch 0.4.8.