Skip Navigation

[Resolved] Post-relationship

This support ticket is created 6 years, 6 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
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by timB 6 years, 6 months ago.

Assisted by: Beda.

Author
Posts
#575045

Hello Toolset...

I uploaded Types 2.3-b1 to a new fresh WordPress installation with no other plugins. I have a pending project to work on, and I am following your blog post instructions to see whether upcoming releases of Types, Views and Cred can help me with it.

However, when I went to add a new post type I was greeted with this error message:
Fatal error: Can't use method return value in write context in /home/webinclu/ntp1.webinclusion.com/wp-content/plugins/types/vendor/toolset/types/embedded/includes/fields-post.php on line 201

The single difference between this and a normal 'live' installation is that its in a subdomain - ntp1.webinclusion.com - might that be causing it...?

Do you by any chance have a tweak to fix this so I can continue the test? - happy to give you guys admin access to the site if it helps.

Many thanks
Tim

#575050

Probably it is related to some repeating field or group.
I cannot replicate it locally, with the steps provided:
- install Types
- create some post types

Maybe the best is you can send me a Site's Snapshot so I can see it.
https://toolset.com/faq/provide-supporters-copy-site/

Thanks!

#575587

I would need to know how to replicate this. It is important for us to catch these issues as soon as possible.

Would it be possible for you to quickly grab a snapshot of the site and send it to me? I can then analyse and forward what is required.
You can follow these instructions:
https://toolset.com/faq/provide-supporters-copy-site/

Thanks!

#576797

I created a Package of that site and downloaded it for reproduction.

Locally I can activate Types and create Posts just fine.

I think this is an issue with PHP or other versions.

Can you please attach the debug information to this Post?

There are some Fatal Errors on lower PHP versions, but they will be solved ASAP with a new beta.

I suspect you run a PHP version around 5.5?

#576825

Hi Beda

Here is my debug info - many thanks. Tim

{"core":{"Wordpress":{"Multisite":"No","SiteURL":"http:\/\/notliveyet.life","HomeURL":"http:\/\/notliveyet.life","Version":"4.8.2","PermalinkStructure":"\/%year%\/%monthnum%\/%day%\/%postname%\/","PostTypes":"post, page, attachment, revision, nav_menu_item, custom_css, customize_changeset, view, view-template","PostSatus":"publish, future, draft, pending, private, trash, auto-draft, inherit"},"Server":{"jQueryVersion":"1.12.4","PHPVersion":"5.4.45","MySQLVersion":"5.6.37","ServerSoftware":"Apache\/2.4.27 (cPanel) OpenSSL\/1.0.2k mod_bwlimited\/1.4"},"PHP":{"MemoryLimit":"99999999912M","UploadMax":"240M","PostMax":"50M","TimeLimit":"700","MaxInputVars":"1000"}},"plugins":{"active_plugins":{"duplicator\/duplicator.php":{"Name":"Duplicator","PluginURI":"http:\/\/www.lifeinthegrid.com\/duplicator\/","Version":"1.2.24","Author":"Snap Creek","AuthorURI":"http:\/\/www.snapcreek.com\/duplicator\/","TextDomain":"duplicator","DomainPath":"","Network":false,"Title":"Duplicator","AuthorName":"Snap Creek"},"wp-views\/wp-views.php":{"Name":"Toolset Views","PluginURI":"https:\/\/toolset.com\/?utm_source=viewsplugin\u0026utm_campaign=views\u0026utm_medium=plugins-list-full-version\u0026utm_term=Visit plugin site","Version":"2.4.1","Author":"OnTheGoSystems","AuthorURI":"http:\/\/www.onthegosystems.com","TextDomain":"wp-views","DomainPath":"","Network":false,"Title":"Toolset Views","AuthorName":"OnTheGoSystems"}},"mu_plugins":[],"dropins":[]},"theme":{"Name":"Twenty Seventeen","ThemeURI":null,"Author":"\u003Ca href=\u0022https:\/\/wordpress.org\/\u0022\u003Ethe WordPress team\u003C\/a\u003E","AuthorURI":null,"Template":"twentyseventeen","Version":"1.3","TextDomain":null,"DomainPath":null},"extra-debug":{"views":{"views_template_loop_blog":0,"wpv_bootstrap_version":1,"wpv_custom_conditional_functions":[],"wpv_custom_inner_shortcodes":[],"wpv_debug_mode":"","wpv_debug_mode_type":"compact","wpv_map_plugin":0,"wpv_show_edit_view_link":1,"wpv_show_hidden_fields":"","wpv_saved_auto_detected_framework":"","wpv_codemirror_autoresize":"","wpv_enable_pagination_manage_history":true,"wpv_enable_parametric_search_manage_history":true}}}

#576827

And this is the issue:
PHPVersion":"5.4.45"

These things are known to us, there are several errors on lower PHP versions.

We plan to fix it as soon as possible but for now, the only way is to use an Updated PHP version like PHP 6x or 7x

I would suggest asking your Host Admin to do that anyway, as also WordPress will move away from lower PHP Versions sooner or later.

We will provide a fix for this ASAP.

What I can do for now is provide you a small test site where you can try it out, but that would be for limited time only, as we use those for debug purposes usually.

Thank you!

#576838

Excellent... OK - thank you Beda
I have upgraded this site to PHP 7.1 and it seems to be working fine now.
I had upgraded the server a few weeks ago, and had thought it would install 7.1 by default on new accounts, but it doesn't...

Many thanks for your help.
Tim

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.