Navigation Menu Items in OJS 3.1

Hi,

when I want to add a new navigation item, I get “Failed Ajax request or invalid JSON returned”.
This happens only in a site wide context.

What could be wrong?

Regards,
habib

I also get this error in my php.log:

PHP Fatal error: Call to a member function getPath() on a non-object in …/cache/t_compile/afdbc343a85db3051c96acebe4dc1fed0244d413^%%56^56A^56A06BB9%%navigationMenuItemsForm.tpl.php on line 62

Hi @habib

Have you tried clear cache system to check if error persists?
Could you check your console log browser at moment this issue occurs and post what it says?

Regards,
Israel Cefrin
Public Knowledge Project Team

Hi Israel,

yes, I’ve cleared the cache, still the same error. Also nothing in the console. My only hint is that there must be an error with getPath() in ./lib/pkp/templates/controllers/grid/navigationMenus/form/navigationMenuItemsForm.tpl

Regards,
habib

I have the same Problem. The browser consol give me this code back:

menus.navigation-menu-items-grid&op=update-navigation-menu-item 404 (Not Found)
send @ jquery.min.js:4
ajax @ jquery.min.js:4
n.(anonymous function) @ jquery.min.js:4
a.pkp.controllers.form.AjaxFormHandler.submitForm @ pkp.min.js:253
(anonymous) @ pkp.min.js:124
a.pkp.controllers.form.FormHandler.submitHandler_ @ pkp.min.js:246
(anonymous) @ pkp.min.js:124
s @ jquery.validate.min.js:2
(anonymous) @ jquery.validate.min.js:2
dispatch @ jquery.min.js:3
r.handle @ jquery.min.js:3

Hi all.

The “getPath()” error is probably the same as Upgrade OJS2 to OJS31: errors occurred in the backend, for which a fix can be found here: NavigationMenus - Custom Page Error on Site level · Issue #3080 · pkp/pkp-lib · GitHub

Thanks!
@Dimitris_Efstathiou