KB Article #179013
PHP errors appear after logging in to API Portal
Problem
After logging in to API Portal, you see a number of PHP errors similar to the following:
Notice: Use of undefined constant hideTags - assumed 'hideTags' in /opt/axway/apiportal/htdoc/components/com_apiportal/views/apicatalog/view.html.php on line 170 Notice: Use of undefined constant showTags - assumed 'showTags' in /opt/axway/apiportal/htdoc/components/com_apiportal/views/apicatalog/view.html.php on line 175 Notice: Use of undefined constant apiCatlogDefaultView - assumed 'apiCatlogDefaultView' in /opt/axway/apiportal/htdoc/components/com_apiportal/views/apicatalog/tmpl/default.php on line 36 Notice: Use of undefined constant hideTags - assumed 'hideTags' in /opt/axway/apiportal/htdoc/components/com_apiportal/views/apicatalog/tmpl/default.php on line 41 Notice: Undefined index: enableInlineTryIt in /opt/axway/apiportal/htdoc/components/com_apiportal/helpers/apiportal.php on line 1842 Notice: Undefined variable: oauthClient in /opt/axway/apiportal/htdoc/components/com_apiportal/views/application/tmpl/edit.php on line 805
Resolution
This happens when error reporting is set to DEVELOPMENT by mistake. To get rid of these harmless error messages, do the following:
- Open and login to the Joomla admin panel.
- Go to System -> Global configuration -> Server (tab)
- Set error reporting to NONE
A fix is under development, tentatively scheduled in API Portal 7.5.5_SP1.