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

unserialize(): Error at offset 65534 of 65535 bytes #48

Closed
sunscreem opened this issue May 11, 2019 · 1 comment
Closed

unserialize(): Error at offset 65534 of 65535 bytes #48

sunscreem opened this issue May 11, 2019 · 1 comment
Assignees
Labels
Milestone

Comments

@sunscreem
Copy link

Hey,

I'm get this and a 500 error when I'm on page 4 or 5 of the audit log.

yii\base\ErrorException unserialize(): Error at offset 65534 of 65535 bytes 
    /home/icota/sites/icota-usa/vendor/superbig/craft-audit/src/models/AuditModel.php:169 yii\base\ErrorHandler::handleError
    /home/icota/sites/icota-usa/vendor/craftcms/cms/src/web/ErrorHandler.php:81 craft\web\ErrorHandler::handleError
    [internal] unserialize
    /home/icota/sites/icota-usa/vendor/superbig/craft-audit/src/models/AuditModel.php:169 superbig\audit\models\AuditModel::createFromRecord
    /home/icota/sites/icota-usa/vendor/superbig/craft-audit/src/controllers/DefaultController.php:74 superbig\audit\controllers\DefaultController::actionIndex
    [internal] call_user_func_array
    /home/icota/sites/icota-usa/vendor/yiisoft/yii2/base/InlineAction.php:57 yii\base\InlineAction::runWithParams
    /home/icota/sites/icota-usa/vendor/yiisoft/yii2/base/Controller.php:157 yii\base\Controller::runAction
    /home/icota/sites/icota-usa/vendor/craftcms/cms/src/web/Controller.php:109 craft\web\Controller::runAction
    /home/icota/sites/icota-usa/vendor/yiisoft/yii2/base/Module.php:528 yii\base\Module::runAction
    /home/icota/sites/icota-usa/vendor/craftcms/cms/src/web/Application.php:297 craft\web\Application::runAction
    /home/icota/sites/icota-usa/vendor/yiisoft/yii2/web/Application.php:103 yii\web\Application::handleRequest
    /home/icota/sites/icota-usa/vendor/craftcms/cms/src/web/Application.php:286 craft\web\Application::handleRequest
    /home/icota/sites/icota-usa/vendor/yiisoft/yii2/base/Application.php:386 yii\base\Application::run
    /home/icota/sites/icota-usa/web/index.php:24 [main]

I'm running v1.0.4. Any ideas if this something at my end I've done wrong?

@sjelfull sjelfull self-assigned this May 12, 2019
@sjelfull sjelfull added the bug label May 12, 2019
@sjelfull
Copy link
Owner

sjelfull commented May 12, 2019

This is most likely due to if there's a ", ', :, or ; in any of the array values the serialization gets corrupted.

I'll have a fix out soon.

Some references:

@sjelfull sjelfull added this to the 1.1 milestone Sep 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants