Had error after install new themes
Permalink Browser Info Environment
An unexpected error occurred.
count(): Parameter must be an array or an object that implements Countable
count(): Parameter must be an array or an object that implements Countable
Type: | Pre-Sale |
---|---|
Status: | In Progress |
Hi Jordif.
I´m also having this problem. When my web host upgraded the PHP version to 7.2 I got the same message. Any suggestions what to do, or should I roll back to previous PHP version?
/Peter
I´m also having this problem. When my web host upgraded the PHP version to 7.2 I got the same message. Any suggestions what to do, or should I roll back to previous PHP version?
/Peter
Hi Peter,
can you copy/paste the exact error you are getting?
(Yes, rolling back to a previous version should work as a workaround)
Cheers,
can you copy/paste the exact error you are getting?
(Yes, rolling back to a previous version should work as a workaround)
Cheers,
Hi
I have the same error. First install on localhost on blank concrete5. After install your theme (with example content), the error is only on the home page.
Concrete5 Version 8.5.2
PHP Version 7.3.11 (xampp, windows)
If you need more technical detail, then I can past it.
Whoops\Exception\ErrorException thrown with message "count(): Parameter must be an array or an object that implements Countable"
Stacktrace:
#28 Whoops\Exception\ErrorException in C:\xampp\htdocs\pb\packages\theme_long_way_home\blocks\page_list\templates\long_way_home_grid_polaroids\view.php:83
#27 Whoops\Run:handleError in C:\xampp\htdocs\pb\packages\theme_long_way_home\blocks\page_list\templates\long_way_home_grid_polaroids\view.php:83
#26 include in C:\xampp\htdocs\pb\concrete\src\Block\View\BlockView.php:248
#25 Concrete\Core\Block\View\BlockView:renderViewContents in C:\xampp\htdocs\pb\concrete\src\View\AbstractView.php:164
#24 Concrete\Core\View\AbstractView:render in C:\xampp\htdocs\pb\concrete\src\Area\Area.php:856
#23 Concrete\Core\Area\Area:display in C:\xampp\htdocs\pb\packages\theme_long_way_home\themes\long_way_home\full.php:8
#22 include in C:\xampp\htdocs\pb\concrete\src\View\View.php:288
#21 Concrete\Core\View\View:renderTemplate in C:\xampp\htdocs\pb\concrete\src\View\View.php:250
#20 Concrete\Core\View\View:renderViewContents in C:\xampp\htdocs\pb\concrete\src\View\AbstractView.php:164
#19 Concrete\Core\View\AbstractView:render in C:\xampp\htdocs\pb\concrete\src\Http\ResponseFactory.php:148
#18 Concrete\Core\Http\ResponseFactory:view in C:\xampp\htdocs\pb\concrete\src\Http\ResponseFactory.php:215
#17 Concrete\Core\Http\ResponseFactory:controller in C:\xampp\htdocs\pb\concrete\src\Http\ResponseFactory.php:362
#16 Concrete\Core\Http\ResponseFactory:collection in C:\xampp\htdocs\pb\concrete\src\Http\DefaultDispatcher.php:130
#15 Concrete\Core\Http\DefaultDispatcher:handleDispatch in C:\xampp\htdocs\pb\concrete\src\Http\DefaultDispatcher.php:58
#14 Concrete\Core\Http\DefaultDispatcher:dispatch in C:\xampp\htdocs\pb\concrete\src\Http\Middleware\DispatcherDelegate.php:39
#13 Concrete\Core\Http\Middleware\DispatcherDelegate:next in C:\xampp\htdocs\pb\concrete\src\Http\Middleware\ThumbnailMiddleware.php:76
#12 Concrete\Core\Http\Middleware\ThumbnailMiddleware:process in C:\xampp\htdocs\pb\concrete\src\Http\Middleware\MiddlewareDelegate.php:50
#11 Concrete\Core\Http\Middleware\MiddlewareDelegate:next in C:\xampp\htdocs\pb\concrete\src\Http\Middleware\FrameOptionsMiddleware.php:39
#10 Concrete\Core\Http\Middleware\FrameOptionsMiddleware:process in C:\xampp\htdocs\pb\concrete\src\Http\Middleware\MiddlewareDelegate.php:50
#9 Concrete\Core\Http\Middleware\MiddlewareDelegate:next in C:\xampp\htdocs\pb\concrete\src\Http\Middleware\CookieMiddleware.php:35
#8 Concrete\Core\Http\Middleware\CookieMiddleware:process in C:\xampp\htdocs\pb\concrete\src\Http\Middleware\MiddlewareDelegate.php:50
#7 Concrete\Core\Http\Middleware\MiddlewareDelegate:next in C:\xampp\htdocs\pb\concrete\src\Http\Middleware\ApplicationMiddleware.php:29
#6 Concrete\Core\Http\Middleware\ApplicationMiddleware:process in C:\xampp\htdocs\pb\concrete\src\Http\Middleware\MiddlewareDelegate.php:50
#5 Concrete\Core\Http\Middleware\MiddlewareDelegate:next in C:\xampp\htdocs\pb\concrete\src\Http\Middleware\MiddlewareStack.php:86
#4 Concrete\Core\Http\Middleware\MiddlewareStack:process in C:\xampp\htdocs\pb\concrete\src\Http\DefaultServer.php:85
#3 Concrete\Core\Http\DefaultServer:handleRequest in C:\xampp\htdocs\pb\concrete\src\Foundation\Runtime\Run\DefaultRunner.php:128
#2 Concrete\Core\Foundation\Runtime\Run\DefaultRunner:run in C:\xampp\htdocs\pb\concrete\src\Foundation\Runtime\DefaultRuntime.php:102
#1 Concrete\Core\Foundation\Runtime\DefaultRuntime:run in C:\xampp\htdocs\pb\concrete\dispatcher.php:45
#0 require in C:\xampp\htdocs\pb\index.php:3
I have the same error. First install on localhost on blank concrete5. After install your theme (with example content), the error is only on the home page.
Concrete5 Version 8.5.2
PHP Version 7.3.11 (xampp, windows)
If you need more technical detail, then I can past it.
Whoops\Exception\ErrorException thrown with message "count(): Parameter must be an array or an object that implements Countable"
Stacktrace:
#28 Whoops\Exception\ErrorException in C:\xampp\htdocs\pb\packages\theme_long_way_home\blocks\page_list\templates\long_way_home_grid_polaroids\view.php:83
#27 Whoops\Run:handleError in C:\xampp\htdocs\pb\packages\theme_long_way_home\blocks\page_list\templates\long_way_home_grid_polaroids\view.php:83
#26 include in C:\xampp\htdocs\pb\concrete\src\Block\View\BlockView.php:248
#25 Concrete\Core\Block\View\BlockView:renderViewContents in C:\xampp\htdocs\pb\concrete\src\View\AbstractView.php:164
#24 Concrete\Core\View\AbstractView:render in C:\xampp\htdocs\pb\concrete\src\Area\Area.php:856
#23 Concrete\Core\Area\Area:display in C:\xampp\htdocs\pb\packages\theme_long_way_home\themes\long_way_home\full.php:8
#22 include in C:\xampp\htdocs\pb\concrete\src\View\View.php:288
#21 Concrete\Core\View\View:renderTemplate in C:\xampp\htdocs\pb\concrete\src\View\View.php:250
#20 Concrete\Core\View\View:renderViewContents in C:\xampp\htdocs\pb\concrete\src\View\AbstractView.php:164
#19 Concrete\Core\View\AbstractView:render in C:\xampp\htdocs\pb\concrete\src\Http\ResponseFactory.php:148
#18 Concrete\Core\Http\ResponseFactory:view in C:\xampp\htdocs\pb\concrete\src\Http\ResponseFactory.php:215
#17 Concrete\Core\Http\ResponseFactory:controller in C:\xampp\htdocs\pb\concrete\src\Http\ResponseFactory.php:362
#16 Concrete\Core\Http\ResponseFactory:collection in C:\xampp\htdocs\pb\concrete\src\Http\DefaultDispatcher.php:130
#15 Concrete\Core\Http\DefaultDispatcher:handleDispatch in C:\xampp\htdocs\pb\concrete\src\Http\DefaultDispatcher.php:58
#14 Concrete\Core\Http\DefaultDispatcher:dispatch in C:\xampp\htdocs\pb\concrete\src\Http\Middleware\DispatcherDelegate.php:39
#13 Concrete\Core\Http\Middleware\DispatcherDelegate:next in C:\xampp\htdocs\pb\concrete\src\Http\Middleware\ThumbnailMiddleware.php:76
#12 Concrete\Core\Http\Middleware\ThumbnailMiddleware:process in C:\xampp\htdocs\pb\concrete\src\Http\Middleware\MiddlewareDelegate.php:50
#11 Concrete\Core\Http\Middleware\MiddlewareDelegate:next in C:\xampp\htdocs\pb\concrete\src\Http\Middleware\FrameOptionsMiddleware.php:39
#10 Concrete\Core\Http\Middleware\FrameOptionsMiddleware:process in C:\xampp\htdocs\pb\concrete\src\Http\Middleware\MiddlewareDelegate.php:50
#9 Concrete\Core\Http\Middleware\MiddlewareDelegate:next in C:\xampp\htdocs\pb\concrete\src\Http\Middleware\CookieMiddleware.php:35
#8 Concrete\Core\Http\Middleware\CookieMiddleware:process in C:\xampp\htdocs\pb\concrete\src\Http\Middleware\MiddlewareDelegate.php:50
#7 Concrete\Core\Http\Middleware\MiddlewareDelegate:next in C:\xampp\htdocs\pb\concrete\src\Http\Middleware\ApplicationMiddleware.php:29
#6 Concrete\Core\Http\Middleware\ApplicationMiddleware:process in C:\xampp\htdocs\pb\concrete\src\Http\Middleware\MiddlewareDelegate.php:50
#5 Concrete\Core\Http\Middleware\MiddlewareDelegate:next in C:\xampp\htdocs\pb\concrete\src\Http\Middleware\MiddlewareStack.php:86
#4 Concrete\Core\Http\Middleware\MiddlewareStack:process in C:\xampp\htdocs\pb\concrete\src\Http\DefaultServer.php:85
#3 Concrete\Core\Http\DefaultServer:handleRequest in C:\xampp\htdocs\pb\concrete\src\Foundation\Runtime\Run\DefaultRunner.php:128
#2 Concrete\Core\Foundation\Runtime\Run\DefaultRunner:run in C:\xampp\htdocs\pb\concrete\src\Foundation\Runtime\DefaultRuntime.php:102
#1 Concrete\Core\Foundation\Runtime\DefaultRuntime:run in C:\xampp\htdocs\pb\concrete\dispatcher.php:45
#0 require in C:\xampp\htdocs\pb\index.php:3
Hi tino77,
thanks for the detailed information.
I have just released a new version of the theme (1.1.2).
Could you please update the theme to the latest version and see if that fixes it?
Cheers,
thanks for the detailed information.
I have just released a new version of the theme (1.1.2).
Could you please update the theme to the latest version and see if that fixes it?
Cheers,
what version of concrete5 are you running? And what new themes were you installing?
I see you purchased Long Way Home back in January 2016, I assume you were able to install it fine then.