Sitecake 2.5.0 on MAMP 6.8 - a lots of errors

Hello

I installed Sitecake with the free MAMP 6.8 on my Mac at ‘localhost’. I used the free “Business” template, downloaded from sitecacke.com. After calling http://localhost.sitecake.php, lots of errors popped up above the page content and I don’t know what to do … :disappointed: PHP is set to 8.2.0.

Deprecated: Symfony\Component\Routing\Route implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /Users/[myusername]/Sites/[thewebsitefolder]/sitecake/2.5.0/vendor/symfony/routing/Route.php on line 20

Deprecated: Silex\Route implements the Serializable interface, which is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary) in /Users/[myusername]/Sites/[thewebsitefolder]/sitecake/2.5.0/vendor/silex/silex/src/Silex/Route.php on line 21

Deprecated: Return type of Symfony\Component\Routing\RouteCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/[myusername]/Sites/[thewebsitefolder]/sitecake/2.5.0/vendor/symfony/routing/RouteCollection.php on line 54

Deprecated: Return type of Symfony\Component\Routing\RouteCollection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/[myusername]/Sites/[thewebsitefolder]/sitecake/2.5.0/vendor/symfony/routing/RouteCollection.php on line 64

Deprecated: Return type of Sitecake\Util\ObjectRegistry::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/[myusername]/Sites/[thewebsitefolder]/sitecake/2.5.0/src/Sitecake/Util/ObjectRegistry.php on line 326

Deprecated: Return type of Sitecake\Util\ObjectRegistry::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/[myusername]/Sites/[thewebsitefolder]/sitecake/2.5.0/src/Sitecake/Util/ObjectRegistry.php on line 316

Deprecated: Return type of Symfony\Component\HttpFoundation\ParameterBag::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/[myusername]/Sites/[thewebsitefolder]/sitecake/2.5.0/vendor/symfony/http-foundation/ParameterBag.php on line 220

Deprecated: Return type of Symfony\Component\HttpFoundation\ParameterBag::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/[myusername]/Sites/[thewebsitefolder]/sitecake/2.5.0/vendor/symfony/http-foundation/ParameterBag.php on line 230

Deprecated: Return type of Symfony\Component\HttpFoundation\HeaderBag::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/[myusername]/Sites/[thewebsitefolder]/sitecake/2.5.0/vendor/symfony/http-foundation/HeaderBag.php on line 288

Deprecated: Return type of Symfony\Component\HttpFoundation\HeaderBag::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/[myusername]/Sites/[thewebsitefolder]/sitecake/2.5.0/vendor/symfony/http-foundation/HeaderBag.php on line 298

Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /Users/[myusername]/Sites/[thewebsitefolder]/sitecake/2.5.0/vendor/symfony/http-foundation/Request.php on line 316

Lower the PHP version and try again

1 Like

Thanks for the answer. Which highest version would be apropriate? Anyway it works with php ver. 7.4.33 … :wink:

8.0 should work too.

1 Like

Hi!

Receiving same error

[03-Jan-2025 09:02:21 UTC] PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /app/www/siteone/html/sitecake/2.5.0/vendor/symfony/http-foundation/Request.php on line 316

in an environment that is required to run the latest PHP version available (currently on Linux) for security.
Are there any plans or schedule for updating SiteCake? This server currently has PHP 8.3.13.