Fork me on GitHub

Admin_execute problem  Bottom

  • Well, I created a simple module for a yachting site that has yacht specifications and images that are all editable from the admin section. The thing is that I haven't coded it following the pnAPI cause I don't have the luxury of spending time to read the pnAPI guide...

    When I finished the module which had the name Boats and it worked fine, the customer told me he wanted to be called Yachts. I renamed it and everything went smooth except from the fact that at the bottom of the template in the admin section of Yachts it displays this error: error : admin_execute(modules/Yachts/admin.php,Yachts_admin_main). Admin section of Yachts works fine but I don't want for the customer to see this message when he's adding/editing/deleting yachts.

    I've read somewhere that by re-installing it will be fixed. I did that but nothing happened. Anyone knows how this can be fixed?
  • That problem seems to occurr when you rename the directory the module is in and you don't change the code accordingly.

    One option is to roll back to the situation you had (when it was called boats). Then goto Administration -> Modules click edit at the entry for Boats and rename to Yachts. That way all references to the module will look like Yachts.

    Unless you make a download of the code available there's not much more I can do for you :?

    HTH

This list is based on users active over the last 60 minutes.