Menu

Invalid id (address.class.php line 127)

Help
HenkG
2014-03-21
2014-03-22
  • HenkG

    HenkG - 2014-03-21

    Please Help
    php-addressbook v8.2.5.1 (new clean install)

    I can create records, but can not edit them after they are created.
    Changed data is NOT saved in database!
    When pressing UPDATE button in edit.php i get error message:
    Undefined index: id in /volume1/web/accountboek/include/address.class.php on line 127
    Invalid ID.

    Line 127 containes: $addresses = Addresses::withID($addr['id']);

     
  • HenkG

    HenkG - 2014-03-22

    SOLVED, Found the problem.
    I edited ./edit.php (removing fields)
    I also had to remove the same fields from include/address.class.php
    Somewhere along the line i must have made a typo failure.

    Couldnt find what was wrong because PHP cache is enabled and changes took some time to occur so i kept on editing while the cached file still was active.

     

Log in to post a comment.