Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP Warning: The script tried to access a property on an incomplete object #678

Open
bfintal opened this issue Dec 28, 2023 · 1 comment

Comments

@bfintal
Copy link
Contributor

bfintal commented Dec 28, 2023

🐞 bug report

Behavior:

  • What is the issue? (*)

This appears as a PHP warning:

PHP Warning: FS_Plugin::__construct(): The script tried to access a property on
an incomplete object. Please ensure that the class definition "FS_Plugin" of the
object you are trying to operate on was loaded before unserialize() gets
called or provide an autoloader to load the class definition in
/.../freemius/includes/entities/class-fs-plugin.php on line 134

  • What is the expected behavior?

No warning

I found this information online on something similar (also a Freemius SDK issue): https://wordpress.org/support/topic/error-message-related-to-this-plugin/ the important part goes:

I’m using Docket Cache plugin and I’ve discovered that the preload objects feature was causing this issue with the very ugly Freemius library. If I disable this in Docket Cache then error disappear from the logs.

@yuvalo
Copy link

yuvalo commented Jan 4, 2024

Got this from one of our users as well:

I’m getting the following warnings on my page when this plugin is active. It was identified by Query Monitor

FS_Plugin::__construct(): The script tried to access a property on an incomplete object. Please ensure that the class definition “FS_Plugin” of the object you are trying to operate on was loaded before unserialize() gets called or provide an autoloader to load the class definition

Location: wp-content/plugins/goal-tracker-ga/freemius/includes/entities/class-fs-plugin.php:126

and

Location: wp-content/plugins/goal-tracker-ga/freemius/includes/entities/class-fs-plugin.php:134

Thanks for any help resolving this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants