Notice: Trying to get property of non-object

This topic is: not resolved
Viewing 11 posts - 1 through 11 (of 11 total)
Author Posts
July 21, 2022 at 10:18 am #4306
Simon Stewart
Post count: 14

There are number of errors on our site. I tried adding global $wf on the templates still it doesn’t fix the issues.

Fatal error: Uncaught Error: Call to a member function has() on string
Code: <?php if ($wf->content->has(‘introduction’)) : ?>

Notice: Trying to get property ‘introduction’ of non-object
Code: <?php echo $wf->content->introduction ?>

MasterPress Version: 1.3.4
WordPress Version: 5.9.2
Multi-site: no
PHP Version: 7.4.15
MySQL Version: 8.0.28-0ubuntu0.20.04.3
Operating System: Linux

July 21, 2022 at 3:12 pm #4308
Jayme [MasterPress Support]
Post count: 17

Hi Simon,

$wf->content returns the content of the current post in the loop. can you please elaborate further as to what you’re trying to do? have you named a fieldset content?

July 25, 2022 at 9:31 am #4312
Simon Stewart
Post count: 14

Hi Jayme,

Any updates on fixing the Masterpress compatibility issue with MySQL 8.0.28?

July 25, 2022 at 11:54 am #4315
Jayme [MasterPress Support]
Post count: 17

Hi Simon,

In the response above yours, I have asked for clarification about what you are trying to do. MasterPress by default returns a string when $wf->content is called.

As far as I know, MasterPress has no compatibility issues with MySQL 8.0.28.

Cheers,
Jayme

July 25, 2022 at 2:07 pm #4318
Simon Stewart
Post count: 14

Hi Jayme,

I’m having trouble sending my reply this should be submitted last week. Thinking you are still to approve my reply since it contains some HTML codes. I’ll try to send them piece by piece.

July 25, 2022 at 2:10 pm #4321
Simon Stewart
Post count: 14

Here is the website’s link, most of the pages has the same Masterpress issue: unifold.com.au

I’m trying the fix the Masterpress content issue. I tried using get_post_meta and it displayed the content.

Please check this unifold.com.au/wp-content/uploads/2022/07/mastpress-issue.jpg issue.

July 25, 2022 at 2:11 pm #4322
Simon Stewart
Post count: 14

Here is the code of the homepage:
unifold.com.au/wp-content/uploads/2022/07/unifold-home.png

The hosting of the site is DreamHost. They have updated the MySQL version to 8.0.28 and we don’t have an option to downgrade the version.

One of our developers told us that it might be a Masterpress compatibility issue with the current MySQL version. Let me know if we need to move to another hosting or if you have other solution to fix the issues.

July 26, 2022 at 2:15 pm #4324
Simon Stewart
Post count: 14

Hi Jayme,

Sorry but we need to resolve soon and it is URGENT. The site has been down for a long time now. Hope to hear from you soon.

July 26, 2022 at 5:16 pm #4325
Jayme [MasterPress Support]
Post count: 17

Hi Simon,

I have thoroughly tested this on MySQL 8.0.29 as I don’t have 8.0.28 readily available. I was not able to replicate the issue.

A couple of further questions to help us assist:

1. Have you attempted to disable all plugins except for MasterPress to see if there is a plugin conflict?
2. What are the results of a var_dump of $the->content?

It will help if we switch communication via email – please contact me via our support email: support@masterpressplugin.com. If you require priority support (where we prioritise your request over current projects), this is available to Developer License holders – you might like to consider upgrading.

If you want us to look into it deeper, providing access to files via SFTP and/or creating a user account for us would be a huge help.

Cheers,
Jayme

July 27, 2022 at 9:44 am #4326
Simon Stewart
Post count: 14

Hi Jayme,

I’ve tried disabling all the plugin except Masterpress but it didn’t fixed the issue.

I’ve sent an email to support@masterpressplugin.com with the access to the website so you can debug.

Hope to hear from you soon.

July 28, 2022 at 1:49 pm #4334
Jayme [MasterPress Support]
Post count: 17

MasterPress 1.3.6 resolves this issue.

Viewing 11 posts - 1 through 11 (of 11 total)

You must be logged in to reply to this topic.

Latest From the Blog

MasterPress 1.3.10 is now available

9th November 2023

MasterPress 1.3.10 is a feature and bugfix release. Workaround for fatal error introduced by changes to WordPress’ wpdb class in WordPress 6.4. Added actions to MPC files upload_field & WF image save_image functions.

Plugin Requirements

MasterPress requires a minimum of WordPress version 4.9, MySQL 5.6, and PHP version 5.6.20.

We also recommend that PHP is configured to use a memory limit of 64MB per request (128MB may be required for sites with higher complexity).

This plug-in is not compatible with the WordPress.com hosted service.

Three AM