Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

danieldelia's avatar

Site wide Error Message : PHP no longer compatible

Hello,

After upgrading to PHP 5.5.25, our Laravel site crashed on May 14 2015.

Here is the error message : The use statement with non-compound name 'Cookie' has no effect

Once we rolled back to PHP 5.5.24, the error message disappeared and the site became functional again.

We are using Laravel version 4.2.9 We'd like to know what changes we should make to our code so it is compatible with PHP 5.5.25

Thanks

0 likes
8 replies
danieldelia's avatar

Hello again,

Thanks for your quick response but our problem is with PHP 5.5.25. We need to make Laravel 4.2.9 compatible with PHP 5.5.25.

Regards

sukonovs's avatar

Problem is in code NOT with PHP. They just fixed bug that does not show error. Check logs or stack trace to error and just fix use statement. If problem points to Laravel source, post an issue on Laravel's github repo laravel/framework. If it is in your project just fix it and thats it. I cant see your code so I can't say where to look.

d0tt's avatar

@sukonovs already pointed you in the correct direction, have you looked where the code uses Cookie?

danieldelia's avatar

no,I want that my site works with new release of php 5.5.25.

bashy's avatar

Then fix the use statement at the top of your code for the Cookie import.

You haven't shown us what the code is like, you may be using the wrong use name or path.

Please or to participate in this conversation.