• When editing an existing address, I get an error when I hit Save. The error is ‘Nothing found for Wp-admin $addressbook_basefile?page=addressbook Addressbook Php&action=edit&id=1’. Running WordPress 2.3.3 and AddressBook 1.0.

Viewing 3 replies - 1 through 3 (of 3 total)
  • I just looked at the plugin code…

    The variable $addressbook_basefile is referenced directly in html code which is obviously not correct.

    You’ll have to patch up the code in addressbook.php. Find the places where $addressbook_basefile is referenced outside a php block and change it into
    <?php echo $addressbook_basefile; ?>

    The ‘edit existing address’ problem is on line 179

    Lines 146, 149, 263 and 264 are candidates for fixes as well (not really sure though since I’m no PHP guru). There the author tries to reference the variable inside a string constant within a PHP block.

    /johan

    Thread Starter longelf

    (@longelf)

    That’s it, fixes the problem, thanks johanl. I’m not seeing any other errors at the moment, except one small issue. When entering a contact’s website URL, you have to include the https:// otherwise the link doesn’t work properly.

    Thanks again!

    This has been fixed in v.1.1. Good point about the https:// thing… I’ll fix it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Error editing contacts’ is closed to new replies.