Call to undefined method getCurrentMasterTable()

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
Cat
User
Posts: 78

Call to undefined method getCurrentMasterTable()

Post by Cat »

Hello everyone

I have this error when trying to add data to a table

Call to undefined method PHPMaker2024\Art\AtencionAdd::getCurrentMasterTable()


mobhar
User
Posts: 11735

Post by mobhar »

Make sure you have alread re-generated ALL the script files, and try again.


Cat
User
Posts: 78

Post by Cat »

Check clear project folder first

I cleared the browser's cache and the error persists

table does not belong to master/detail

version 2024.9


Cat
User
Posts: 78

Post by Cat »

I just realized that the entire project presents the same error in all the tables, it does not allow adding or editing

// Handle UseAjaxActions with return page
                    if ($this->IsModal && $this->UseAjaxActions && !$this->getCurrentMasterTable()) {
                        $this->IsModal = false;
                        if (GetPageName($returnUrl) != "AtencionList") {
                            Container("app.flash")->addMessage("Return-Url", $returnUrl); // Save return URL
                            $returnUrl = "SecurityVulnerabilityList"; // Return list page content
                        }
                    }

The error is only occurring with the modal


mobhar
User
Posts: 11735

Post by mobhar »

Try to update to the latest template, click Tools -> Update Template, re-generate ALL the script files, and try again.


Cat
User
Posts: 78

Post by Cat »

thank you

Updating the template fixed the error


Post Reply