Fatal error: Call to a member function getId() on null in /Applications/AMPPS/www/social.com/ow_system_plugins/admin/controllers/pages_edit_plugin.php on line 73
The name of the page is just supposed to be "Kindred." What am I doing wrong?
Fatal error: Call to a member function getId() on null in /Applications/AMPPS/www/social.com/ow_system_plugins/admin/controllers/pages_edit_plugin.php on line 73
The name of the page is just supposed to be "Kindred." What am I doing wrong?
Has the text corresponding to kindred + main_menu_item defined in the language ???
The other error I can not help because of lack of information about what it does and how the plugin does it.
If you want to send me all or part of the code and I will try to help
There are several different functions for setting a page name. Here are the examples from our plugin:
OW::getDocument()->setTitle($language->text("supportcenter","support_title"));
OW::getDocument()->setDescription($language->text("supportcenter","support_description"));
OW::getDocument()->setHeading($language->text("supportcenter","support_heading"));
You put the plugin name followed by the language key id (so in this case, just "main_menu_item" in the second array spot).
However, your error is calling for something else, which is "getId()". What are you doing for this function? Can you share the block of code around line 73?
Thanks.
-Jake
JB TECH