Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Dondr • web & design

Fatal error in visiting wp-admin list that uses AdminColumns Pro

Hi folks,

A client of mine just complained that a list of custom posts (made with WPTypes) now gives a fatal error. At first I couldn’t replicate the problem until I logged in using the credentials from the client.

The custom post type is called Images, a project (another custom post type_ can have several images attached to them, however if the images are being browsed manually, they are all there in one big list. To make it manageable, we use Admin Columns Pro to show the “_wpcf_belongs_project_id” column, field type is set to Post Title (Post ID’s) so it nicely shows on each image to which project it belongs to. And thanks to the Pro functions the client can even sort and filter on them.

So that all works really nice, however the client started complaining about a fatal error that started occuring on the Images list page, this is the message:

Fatal error: Call to undefined method CAC_Sortable_Model_Post::recursive_implode() in *omitted*/wp-content/plugins/admin-columns-pro/classes/sortable/classes/model.php on line 481

Strangely enough, only our client experiences this problem, if I log in with my own Admin Account then all is well. I recently made the client account also an Admin and I think that is when the problem started happening (however reverting to Shop Manager like it was before does not solve the problem).

Any help would be greatly appreciated!

Sincerely,
ZET TWEE

5 years, 4 months ago
Stefan
Developer

Yes this is a know issue and should be fixed in the upcoming release.
In the meantime you could change this line

$string = $this->recursive_implode( ', ', $this->get_raw_value( $id ) );

to

$string = $column->recursive_implode( ', ', $column->get_raw_value( $id ) );

in /admin-columns-pro/classes/sortable/classes/model.php line 481

Can you let me know if this works for you?

5 years, 4 months ago
Dondr • web & design

I’m sorry to say but it seems you asked me to change a line into the same text (both quotes contain the same?).
Or am I really missing something here?

5 years, 4 months ago
Stefan
Developer

Sorry, I just changed the second line. The difference is in $this -> $column

5 years, 4 months ago
Dondr • web & design

Thanks for the quick reply, this fixed it!
We’ll be awaiting the new version.

Thank you.

5 years, 4 months ago
Stefan
Developer

Great and thanks for your feedback, I will close this ticket.

5 years, 4 months ago

You must be logged in to reply to this topic.