Skip Navigation

[Resolved] PHP Error-Creating default object from empty value in permissions_post_types

This support ticket is created 4 years, 11 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 5 replies, has 2 voices.

Last updated by Luo Yang 4 years, 10 months ago.

Assisted by: Luo Yang.

Author
Posts
#1456393

Hi,

I am running WP 5.3.2 with Toolset Types, Access and Views (all current version)
Toolset Access is v 2.8.2.1
The server is running on PHP 7.4

In my logs I constantly see the following error:

`[Mon Jan 13 15:42:33.403799 2020] [proxy_fcgi:error] [pid 17177:tid 140116555147008] [client xxx.xxx.xxx.3:0] AH01071: Got error 'PHP message: PHP Warning: Creating default object from empty value in /wp-content/plugins/types-access/application/controllers/permissions_post_types.php on line 190', referer: [any URL frontend or wp-admin that I open]`

Thank you,
Adrian

#1457167

Hello,

The problem you mentioned above is abnormal, please try these:
1) In case it is a compatibility problem, please deactivate all other plugins, and switch to wordpress default theme 2020, deactivate all custom PHP/JS code snippets, and test again

2) If the problem still persists, please provide database dump file(ZIP file) of your website, also point out the problem page URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1458137

I did a test and if I deactivate Toolset Access, there are no more errors. So Access is the offending plugin, as can be seen in the log. The error hints at the fact that the code has not been fully optimized for php7+.

Please pass this along to the dev team so they can investigate and update the code throwing this warning.

Thank you.

#1459023

Thanks for the details, I can duplicated the same problem, and have escalated this issue, will update here if there is any news.

#1489611

It is fixed in next version of Toolset Access plugin, which is under QA status, will be released soon.

#1525975

Access 2.8.4 is released, you can download it here:
https://toolset.com/account/downloads/

Please test it and feedback if the problem is fixed, thanks