Blog - Page 30

Stay updated with the latest insights, trends, and best practices in digital marketing and web development.

Filter by Category

Blog Posts

Featured image for Fatal error: Cannot use EllisLab\ExpressionEngine\Library\Parser\Conditional\Token\Bool as Bool because 'Bool' is a special class
Drupal
2 min read

Fatal error: Cannot use EllisLab\ExpressionEngine\Library\Parser\Conditional\Token\Bool as Bool because 'Bool' is a special class

Fatal error: Cannot use EllisLab\ExpressionEngine\Library\Parser\Conditional\Token\Bool as Bool because 'Bool' is a special class When you update your PHP version and you can see the above issue while working in the Expression Engine. I just commented out the following at core\EllisLab\ExpressionEngine\Library\Parser\Conditional\Lexer.php the boolean and string annotations: use EllisLab\ExpressionEngine\Library\Parser\Conditional\Token\Token; //use EllisLab\ExpressionEngine\Library\Parser\Conditional\Token\Bool; use EllisLab\ExpressionEngine\Library\Parser\Conditional\Token\Comment; use EllisLab\ExpressionEngine\Library\Parser\Conditional\Token\Number; use EllisLab\ExpressionEngine\Library\Parser\Conditional\Token\Operator; [...]

Read more
Featured image for Error encountered after disabling the cache in Drupal
Drupal
2 min read

Error encountered after disabling the cache in Drupal

Following is the error encounter after disabling the cache in DrupalThe website encountered an unexpected error. Please try again later.Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException: You have requested a non-existent service "cache.backend.null". Did you mean one of these: "cache.backend.apcu", "cache.backend.php", "cache.backend.memory"? in Drupal\Component\DependencyInjection\Container->get() (line 161 of core\lib\Drupal\Component\DependencyInjection\Container.php). Drupal\Component\DependencyInjection\Container->get('cache.backend.null') Drupal\Core\Cache\CacheFactory->get('render') call_user_func_array(Array, Array) Drupal\Component\DependencyInjection\Container->createService(Array, 'cache.render') Drupal\Component\DependencyInjection\Container->get('cache.render', 1) Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Object) Drupal\Component\DependencyInjection\Container->createService(Array, 'http_middleware.page_cache') Drupal\Component\DependencyInjection\Container->get('http_middleware.page_cache', 1) Drupal\Component\DependencyInjection\Container->resolveServicesAndParameters(Object) [...]

Read more
front_end_controller_file_to_make_hello_world
Opencart
2 min read

Front end Controller file to make hello world - OpenCart Module Development

OpenCart identifies existing modules automatically, simply by reading the catalog/controller/extension/module folder. Any modules existing in this folder will automatically be loaded as per the active modules for the pages on the front end. Let’s start to create our hello world module by creating the file at admin/controller/extension/module and named it helloworld.php. Then follow the following [...]

Read more
Featured image for Service 'page_manager.variant_route_filter' for consumer 'router.no_access_checks' does not implement
Drupal
5 min read

Service 'page_manager.variant_route_filter' for consumer 'router.no_access_checks' does not implement

Service 'page_manager.variant_route_filter' for consumer 'router.no_access_checks' does not implement The website encountered an unexpected error. Please try again later. Symfony\Component\DependencyInjection\Exception\LogicException: Service 'page_manager.variant_route_filter' for consumer 'router.no_access_checks' does not implement Drupal\Core\Routing\FilterInterface. in Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass->processServiceCollectorPass() (line 164 of D:\xampp\htdocs\axway\corporate-8\web\core\lib\Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass.php). Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass->processServiceCollectorPass(Array, 'router.no_access_checks', Object) (Line: 97) Drupal\Core\DependencyInjection\Compiler\TaggedHandlersPass->process(Object) (Line: 141) Symfony\Component\DependencyInjection\Compiler\Compiler->compile(Object) (Line: 757) Symfony\Component\DependencyInjection\ContainerBuilder->compile() (Line: 1307) Drupal\Core\DrupalKernel->compileContainer() (Line: 884) Drupal\Core\DrupalKernel->initializeContainer() (Line: 466) Drupal\Core\DrupalKernel->boot() [...]

Read more
Featured image for Drupal 8 Symfony Component Routing Exception RouteNotFoundException Route view.products_list.page_2 does not exist
Drupal
1 min read

Drupal 8 Symfony Component Routing Exception RouteNotFoundException Route view.products_list.page_2 does not exist

The website encountered an unexpected error. Please try again later.

Symfony\Component\Routing\Exception\RouteNotFoundException: Route "view.products_list.page_2" does not exist. in Drupal\Core\Routing\RouteProvider->getRouteByName() (line 190 of core\lib\Drupal\Core\Routing\RouteProvider.php). Solution:This is the exception thrown when a route does not exist but you are using it in your twig files or somewhere else. As in the above example find "view.products_list.page_2" in [...]

Read more
Featured image for Admin Language file to make hello world - OpenCart Module Development
Opencart
2 min read

Admin Language file to make hello world - OpenCart Module Development

Create a language file helloworld.php at "admin\language\en-gb\extension\module\", here en-Gb is the English language folder but if your store is multi-language then you have to create helloworld.php in another folder also like at "admin\language\OTHER_LANGUAGE_FOLDER\extension\module\". Now in helloworld.php, you will define variable that holds the text for that language. Starting defining a variable with $_['YOUR_VARIABLE_NAME'] and assign [...]

Read more