DvdGiessen / DBSR

DBSR: Database Search & Replace

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unserialize(): Error at offset 203 of 1226 bytes

sebastienserre opened this issue · comments

Hello,

I'm using your tool on my localhost and have this error:
"unserialize(): Error at offset 203 of 1226 bytes"

ddo you know what's happen?

I have the same problem :(

And me too

Idem

Same here, interested in getting updates. In case it helps, result was:

Results
RESULT occurence(s) found and replaced.
Restart
unserialize(): Error at offset 554 of 579 bytes

Migration test done on an up-to-date Linux CPanel server, PHP 5.6.

Edit: after using a "competition" tool that-shall-remain-nameless, I got:

2: Insufficient data for unserializing - 514 required, 503 present in /my-domain-path/Search-Replace-DB-master/srdb.class.php on line 735
2: Insufficient data for unserializing - 1878 required, 1843 present in /my-domain-path/Search-Replace-DB-master/srdb.class.php on line 735
2: Insufficient data for unserializing - 480 required, 477 present in /my-domain-path/Search-Replace-DB-master/srdb.class.php on line 735
2: Insufficient data for unserializing - 2232 required, 2169 present in /my-domain-path/Search-Replace-DB-master/srdb.class.php on line 735

even though the replace worked with it.
Could that be linked ?

Thanks.

I've finally had some time to look into it. The initial problem turned out to be the regexes which handle broken serialized data did not properly supporting namespace in the serialized object name. Resolved that and am no longer able to reproduce the error, thus closing this issue. Fixes are available in v2.1.1. If you still have problems, let me know. :)

Always the same problem with extended search ...

Hi @fabienlege!

What are you using extended search for, are you running search-and-replace on some special serialized values?

Which version of PHP are you running and can you perhaps share the full error message and/or an example I can use to reproduce the issue? Thanks!

When replacing a domain name in Wordpress, you probably don't need to use the "extended search" option. DBSR is a lot faster without it, and when replacing a domain name (or any text without non-text characters in it) it doesn't make a difference. See also the note about using "extensive search" in the readme.

If you can share more details about the problem, such as the full error message you're getting or ideally a example which I can use to reproduce the issue, I might be able to look into it further.