Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fatal error: Call to a member function addHelperPath() #18

Closed
adehner opened this issue Sep 25, 2017 · 2 comments
Closed

Fatal error: Call to a member function addHelperPath() #18

adehner opened this issue Sep 25, 2017 · 2 comments
Assignees

Comments

@adehner
Copy link

adehner commented Sep 25, 2017

I just installed version 1.1.1 of UserProfiles on Omeka 2.4.1. After creating a profile type and loading the public home page of my Omeka site, while logged in, I get the following error:

Fatal error: Call to a member function addHelperPath() on null in .../plugins/UserProfiles/UserProfilesPlugin.php on line 255

Do you have any idea what's going on here? Since I don't see this error reported in any existing issues, I'm wondering if this error is unique to my setup?

@patrickmj patrickmj self-assigned this Sep 25, 2017
@zerocrates
Copy link
Member

zerocrates commented Sep 25, 2017

The likely culprit would be a theme problem. The public_content_top hook is supposed to pass along view, like this: https://github.com/omeka/Omeka/blob/stable-2.4/application/views/scripts/common/header.php#L56

The hook is usually in your theme's common/header.php file.

@adehner
Copy link
Author

adehner commented Sep 25, 2017

That was it!
For some reason the hook in my header file was missing the view portion:
array('view'=>$this)

Thanks so much @zerocrates!!

@adehner adehner closed this as completed Sep 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants