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

AbsoluteUrlReplacer: Ignore mysqli instances #1312

Open
pavelevap opened this issue Jan 5, 2018 · 0 comments
Open

AbsoluteUrlReplacer: Ignore mysqli instances #1312

pavelevap opened this issue Jan 5, 2018 · 0 comments
Labels
bug Bugs. For major ones, add "major".
Milestone

Comments

@pavelevap
Copy link
Collaborator

Fatal error: ReflectionProperty::setValue(): Cannot write property [...]wp-content/plugins/versionpress/src/Utils/AbsoluteUrlReplacer.php on line 105

Related: versionpress/support#127

Code example to reproduce this error:

<?php
$mysqli = new mysqli();
$reflection = new ReflectionClass(mysqli::class);

$property = $reflection->getProperty('affected_rows');
$property->setAccessible(TRUE);
$property->setValue($mysqli, 10);

It is probably caused by some plugin which stores serialized mysqli instance into WordPress database.

@pavelevap pavelevap added the bug Bugs. For major ones, add "major". label Jan 5, 2018
@pavelevap pavelevap added this to the 4.0 milestone Jan 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bugs. For major ones, add "major".
Projects
None yet
Development

No branches or pull requests

1 participant