Jump to content

Fatal error: Call to a member function attr()


Spica
 Share

Recommended Posts

 Fatal error: Call to a member function attr() on a non-object in /Applications/MAMP/htdocs/ProcessWire-dev/wire/modules/Process/ProcessTemplate/ProcessTemplate.module on line 1014

After some configurations I have this error when I want to open/edit a template. I have no idea at which point of my configuration this was messed up. Does anyone have one?

Link to comment
Share on other sites

What version are you running? It looks like one of the dev versions given that in master there is no attr call on line 1014. The error relates to the newish InputfieldIcon so I think maybe you have a version that had a bug where this wasn't installed when called. Running Modules > Refresh should sort it out.

For reference, here are two Github issues about it:

https://github.com/ryancramerdesign/ProcessWire/issues/891

https://github.com/ryancramerdesign/ProcessWire/issues/873

If you are running a dev version after this was meant to be fixed (which I suspect you might be based on the line number), can you please make a note on that Issue?

  • Like 1
Link to comment
Share on other sites

  • 3 months later...

Hello everybody,

I'm running PW 2.6.0 and I had the same error. Then I updated to 2.6.1. The error remained.

The solutions mentioned above do not work for me.

I used SystemUpdater to update to version 10 again. In the log is see:

2015-06-24 18:34:38    Update #10: Initializing update
2015-06-24 18:34:38    Update #10: Installed ProcessLogger and added: Setup > Logs
2015-06-24 18:34:38    Update #10: Installed InputfieldIcon
2015-06-24 18:34:38    Update #10: Completed!
2015-06-24 18:40:30    Update #10: Initializing update
2015-06-24 18:40:30    Update #10: Installed ProcessLogger and added: Setup > Logs
2015-06-24 18:40:30    Update #10: Installed InputfieldIcon
2015-06-24 18:40:30    Update #10: Completed!

InputfieldIcon should be installed.

In the database:

mysql> select * from modules where class = "InputfieldIcon";
Empty set (0,00 sec)
 
mysql> select count(id) from modules;
+-----------+
| count(id) |
+-----------+
|       107 |
+-----------+
1 row in set (0,00 sec)

A module refresh does not install the module. The error remains all the time.

What am I doing wrong?

Link to comment
Share on other sites

I found the problem.

The premissions for wire/modules/Inputfield/InputfieldIcon were not set correctly. Everything works again since I changed them manually.

A warning or error in Processwire would be nice if a module is installed that is not readable by the webserver's user.

Regards from Germany,

Fred

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...