-
Notifications
You must be signed in to change notification settings - Fork 857
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
2: Class __PHP_Incomplete_Class has no unserializer in /srdb/srdb.class.php on line 735 #176
Comments
I had the same problem running PHP as a FPM application with Apache. Changing the version of PHP did not work out for me (tried 5.5 and 5.6). Switching to FPM with nginx (coincidentally both are installed on my server) and PHP 5.6 solved the problem. Maybe switching to FastCGI might work, too. |
this issue has already been discussed here: I guess you tried to replace a Wordpress DB and have yoast seo plugin installed? |
I have the same problem! |
@Luckyfella73 thank you very much ! It worked like a charm ! |
I have this issue, but I do not have Yoast installed. |
I have this issue even after disabling Yoast site indexing and the entire Yoast plugin. |
Similar scenario here. Even when excluding the Yoast tables, the above error is thrown. If only there was a clearer reason for the issue, to lead one towards an obvious solution, rather than suggested workarounds which make no sense. |
The error is not in the Yoast tables, its in the So, first goto Yoast XML Sitemap setting, and totally disable them. This should wipe out those caches. Try running the find replace DRY RUN again and the errors should disappear. If it works, don't forget to re-eable Yoast sitemaps. Additionally, when doing F&R don't forget that these rows use escaped serialization, ie |
Any updates for this one? |
Thanks @dhaupin - this works exactly as you describe it if you have the Yoast! |
I had this problem on a Drupal 8 database and resolved it by omitting the following tables:
Also note that if you proceed to a live run without omitting those tables it wrecks the serialised data in those tables and your site will break. |
Hello guys, I also have that problem with 2: Class __PHP_Incomplete_Class has no unserializer I have deactivated the Yoast XML Sitemap but it doesn't help. In some articles people speak about default settings of yoast but there is no button "Restore to default".. I don't want to risk running the script with that error.. Anyone found a solution ever since? Thanks a lot |
@Franz333 Are you sure you saved the Yoast settings after disabling XML sitemap and did a new DB dump after that? Beeing in a hurry it happens to skip one of the steps - happened to me once at least ;) |
Hello @Franz333 |
@Luckyfella73 Yes I made sure I saved the settings and I also made a DB back up (which I don't understand why it matters by the way).. :-) |
@fadupla Yes even with ignoring the yoast tables.. :-( |
I said that because I use to duplicate the whole DB and do the replacement on that (duplicated) database. Mostly it's that I replace local URLs with productive URLs and I don't want to rewrite them again to the local version when continuing development. But of cause you might have a different workflow or the task you need to do is just different =) Hope you gonna find the issue soon |
@Franz333 Ok |
@Luckyfella73 Oh I see.. If I understood well you run the script onto your local version first to see if everything goes well and then upload your new DB with replaced URL onto the online version? |
@fadupla the worst is that I actually checked what modifications would be done by the script and yoast was part of it.. I don't understand really.. does my head in :-( |
@Franz333 quelle que soit la table que tu sélectionnes tu as l'erreur |
@fadupla comment as tu deviné que j'étais francophone? :-) |
Sorry for multi posting. I think that "PHP does not know If you are using Add
to So, please try:
|
Hello, It's been a while. I have solved the problem with another trick, can't even remember what. But thanks for giving advice, that might help later on. It will for sure. Thank you very much |
Hi, I'm trying to shift my site from http to https and I get nearly the same line... I am lost as to how to deal with it... :( Could you give me a step by step procedure, please ? |
@ordinatheur You may have some plugin that have serialize and unserialize.
|
@takotakot Thanks for your help, unfortunately I don't understand it at all. :( |
@ordinatheur If there is the error record like Yoast/wordpress-seo#4571 (comment) the content of the data is important. |
@ordinatheur you really need to have developer access/experience to complete the steps @takotakot mentioned. If you have Yoast, you can try this with the sitemaps: #176 (comment) |
Thanks @takotakot and @dhaupin, unfortunately I don't have this experience, |
@ordinatheur Yeah it's an annoying quirk. Do you use Yoast SEO plugin, and does your site have an xml sitemap (yourdomain.com/sitemap.xml or /sitemap_index.xml)? If so, this may be causing the hiccup. By disabling the Yoast sitemap(s) temporarily, it should clear out the funky data, and may allow the find and replace to work without error. |
@dhaupin |
Started using the script today.
going from live to local or
going from local to live. So in WP settings in General tab where it says WordPress Address (URL) and GeneralSettings (URL) I think you can just type https and the domain of your site and it will work. If you are on the live server make sure to set up a free https certificate with https://letsencrypt.org/ for example. Most web hosts have this in their web panel done in a single click. When you activate that for your domain you can just type https in the above two settings fields and it should work. At least it does it when I do so. Also this might help you. It creates an .htaccess file rule that makes sure your site loads with the https protocol. Just make the .htaccess file, put it on the root of your web folder where your WP install is and include the rules mentioned. Hope this helps. But perhaps this is all wrong because the problem is something else. |
even if you deactivate yoast the database records are still there, I am sorry we don't manage any website with yoast and we can't test it. Feel free to open a pull request! |
Could you create a local test site with Yoast enabled? Being local it might be easier to test. |
@damiencarbery we could, but we are busy for the next release. |
@damiencarbery can you test this out with the 4.0 branch? That should fix the issue |
|
Haha understood |
@damiencarbery We're performing a bit of housekeeping. We're quite confident this issue is resolved with 4.1, but please open another case if the issue persists. Thanks for the initial bug report |
This is still persists in 4.1.1 |
@QGaganSuneja Thank you for posting. Please post error messages in detail here. |
Using version 3.1 on PHP 5.5.38.
When I run dry or live run it reports:
2: Class __PHP_Incomplete_Class has no unserializer in /srdb/srdb.class.php on line 735
This line is in recursive_unserialize_replace() function.
As far as I can tell the changes are still correctly made.
I am happy to help debug this issue.
The text was updated successfully, but these errors were encountered: