Skip Navigation

[Resolved] Trying to get property 'ID' of non-object

This support ticket is created 4 years 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 3 replies, has 2 voices.

Last updated by Puntorosso 4 years ago.

Assisted by: Luo Yang.

Author
Posts
#1928903

Normally, I develop new sites on a temporary domain, and then I clone the site and substitute the domain in the database.
Before I switch to the official domain, I do some testing, changing my hosts file, to simulate the new domain.
Something like

67.225.147.XXX officialdomain.com <em><u>hidden link</u></em>

I have noticed that, under this behavior, the captioning of your Toolset Blocks, inserted in a Custom Template, generate errors like

Notice: Trying to get property 'ID' of non-object in /home/xxxxxx/public_html/wp-content/plugins/toolset-blocks/vendor/toolset/blocks/server/Block/Gallery/Shortcode/Caption.php on line 45

Just wanted to notify this.

#1929273

Hello,

Please provide detail steps to reproduce the same problem:
How do you clone your website from one host to another host?
How do you setup the content template? which captioning of Toolset Block are you using in this content template?
I need to duplicate the same problem in my localhost.

And for setup development site, I suggest you follow our document to migrate your website data and files:
https://toolset.com/faq/how-do-i-migrate-a-wordpress-site-from-one-domain-to-the-other/

#1929363

The site has been cloned by the hosting support (liquidweb) on the same host/server, but on a new cPanel.

The captioning on the content tenplate is the standard one
hidden link

Could it be related to the https ? As long as we don't change the domain dns, the SLL certificate isn't working.
Do you want me to send you an admin access?

Thanks

#1930507

My issue is resolved now. Thank you!