Error Click total subscriber - php

I m using the CMD prestashop 1.7.2.4 , when i click to 'total subscriber' , i have this error :
[PrestaShop] Fatal error in module file: /home/lecoindedg/www/app/bootstrap.php.cache:3224
Uncaught Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function isUsingNewTranslationSystem() on boolean in /home/lecoindedg/www/controllers/admin/AdminModulesController.php:1403 Stack trace: #0 /home/lecoindedg/www/classes/controller/AdminController.php(2849): AdminModulesControllerCore->initModal() #1 /home/lecoindedg/www/classes/controller/Controller.php(186): AdminControllerCore->init() #2 /home/lecoindedg/www/classes/Dispatcher.php(379): ControllerCore->run() #3 /home/lecoindedg/www/admin792ivsbt0/index.php(95): DispatcherCore->dispatch() #4 {main} Next LogicException: Request stack is empty in /home/lecoindedg/www/app/bootstrap.php.cache:3224 Stack trace: #0 [internal function]: Symfony\Component\HttpKernel\HttpKernel->terminateWithException(Object(Symfony\Component\Debug\Exception\FatalThrowableError)) #1 /home/lecoindedg/www/vendor/symfony/symfony/src/Symfony/Component/Debug/ErrorHandler.php(606): call_user_func(Array, Object(Symfony\Component\Debug\Exception\FatalThrowableE
Any clue thxs ?

I found a solution :
On the file : views/templates/hook/dashboard_zone_one.tpl
Change :
- <span class="data_label">{l s='Total Subscribers' d='Modules.Dashactivity.Admin'}</span>
+ <span class="data_label">{l s='Total Subscribers' d='Modules.Dashactivity.Admin'}</span>
Adjusted Dashboard Total subscribers link to point to ps_emailsubscription configuration page instead of blocknewsletter that doesn't exists anymore.

Related

Gdex woocommerce installation issue?

I have newly installed GDEX woommerce plugin on wordpress I have this issue
Fatal error: Uncaught InvalidArgumentException: Token is required. in F:\xampp\htdocs\wordpress\bug\wp-content\plugins\mygdex-for-woocommerce\includes\class-gdex-api.php:32 Stack trace: #0 F:\xampp\htdocs\wordpress\bug\wp-content\plugins\mygdex-for-woocommerce\includes\helpers.php(324): Gdex_Api->__construct('') #1 F:\xampp\htdocs\wordpress\bug\wp-content\plugins\mygdex-for-woocommerce\admin\class-gdex-consignment.php(348): gdex_api_get_last_shipment_status(Array) #2 F:\xampp\htdocs\wordpress\bug\wp-includes\class-wp-hook.php(289): Gdex_Consignment->fetch_consignments_statuses(Array) #3 F:\xampp\htdocs\wordpress\bug\wp-includes\plugin.php(249): WP_Hook->apply_filters(Array, Array) #4 F:\xampp\htdocs\wordpress\bug\wp-includes\class-wp-query.php(3190): apply_filters_ref_array('the_posts', Array) #5 F:\xampp\htdocs\wordpress\bug\wp-includes\class-wp-query.php(3448): WP_Query->get_posts() #6 F:\xampp\htdocs\wordpress\bug\wp-includes\class-wp.php(624): WP_Query->query(Array) #7 F:\xampp\htdocs\wordpress\bug\wp-includes\class-w in F:\xampp\htdocs\wordpress\bug\wp-content\plugins\mygdex-for-woocommerce\includes\class-gdex-api.php on line 32
You need to insert user access from https://my.gdexpress.com/dashboard/updateprofile

Fatal error: Uncaught Error: Call to undefined method stdClass::option();

**Fatal error: Uncaught Error: Call to undefined method stdClass::option() in
C:\xampp\htdocs\newtest\wordpress\wp-content\plugins\theme_support_meson\includes\helpers\taxonomies.php:19
Stack trace: #0
C:\xampp\htdocs\newtest\wordpress\wp-content\plugins\theme_support_meson\includes\loader.php(55):
Bunch_Taxonomies->__construct() #1
C:\xampp\htdocs\newtest\wordpress\wp-content\plugins\theme_support_meson\includes\loader.php(77):
_load_plugins_class('taxonomies', 'helpers', false) #2 C:\xampp\htdocs\newtest\wordpress\wp-includes\class-wp-hook.php(286):
_bunch_plugin_init('') #3 C:\xampp\htdocs\newtest\wordpress\wp-includes\class-wp-hook.php(310):
WP_Hook->apply_filters(NULL, Array) #4
C:\xampp\htdocs\newtest\wordpress\wp-includes\plugin.php(465):
WP_Hook->do_action(Array) #5
C:\xampp\htdocs\newtest\wordpress\wp-settings.php(505):
do_action('init') #6
C:\xampp\htdocs\newtest\wordpress\wp-config.php(90):
require_once('C:\\xampp\\htdocs...') #7
C:\xampp\htdocs\newtest\wordpress\wp-load.php(37):
require_once('C:\\xampp\\htdocs.. in
C:\xampp\htdocs\newtest\wordpress\wp-content\plugins\theme_support_meson\includes\helpers\taxonomies.php
on line 19**
This Error occurs when I am including new theme in my WordPress account. That time I am using meson theme and try to include new theme and suddenly this error occurs. so guide me on what to do for solving this.
Deactivate all plugins associated with the last theme, I can see that the error caused by theme_support_meson plugin so make sure to deactivate it then delete it.

Yii2 REST API not working properly

I am creating an API for get user by YII2 user api by user id. If I pass user id then it is working good but If I pass string then I get below error.
<pre>An Error occurred while handling another error:
yii\base\InvalidParamException: Response content must not be an array. in /var/www/html/vendor/yiisoft/yii2/web/Response.php:1020
Stack trace:
#0 /var/www/html/vendor/yiisoft/yii2/web/Response.php(313): yii\web\Response->prepare()
#1 /var/www/html/vendor/yiisoft/yii2/web/ErrorHandler.php(128): yii\web\Response->send()
#2 /var/www/html/vendor/yiisoft/yii2/base/ErrorHandler.php(111): yii\web\ErrorHandler->renderException(Object(yii\web\NotFoundHttpException))
#3 [internal function]: yii\base\ErrorHandler->handleException(Object(yii\web\NotFoundHttpException))
#4 {main}
Previous exception:
yii\base\InvalidRouteException: Unable to resolve the request: categories/wewqewqe in /var/www/html/vendor/yiisoft/yii2/base/Controller.php:127
Stack trace:
#0 /var/www/html/vendor/yiisoft/yii2/base/Module.php(523): yii\base\Controller->runAction('wewqewqe', Array)
#1 /var/www/html/vendor/yiisoft/yii2/web/Application.php(102): yii\base\Module->runAction('categories/wewq...', Array)
#2 /var/www/html/vendor/yiisoft/yii2/base/Application.php(380): yii\web\Application->handleRequest(Object(yii\web\Request))
#3 /var/www/html/index.php(16): yii\base\Application->run()
#4 {main}
Next yii\web\NotFoundHttpException: Page not found. in /var/www/html/vendor/yiisoft/yii2/web/Application.php:114
Stack trace:
#0 /var/www/html/vendor/yiisoft/yii2/base/Application.php(380): yii\web\Application->handleRequest(Object(yii\web\Request))
#1 /var/www/html/index.php(16): yii\base\Application->run()
#2 {main}</pre>
I am using swagger for executing APIs and Endpoint of the API is
users/{id}
Work fine when enter
/users/1
Get error when
/users/asdf
Web.php
'users/<id:\d+>' => 'users/',
I have recently faced same issue and it has been solved by the change in routing in web.php in config folder.
Change your url
users/<id> instead of users/<id:\d+>.

'username_exists' function not working in Wordpress plugin

I wanna use "username_exists" in my own plugin but when I use this function I got this error :
Fatal error: Uncaught Error: Call to undefined function get_user_by()
in E:\xampp\htdocs\wordpress\wp-includes\user.php:1271 Stack trace: #0
E:\xampp\htdocs\wordpress\wp-content\plugins\register-plus\index.php(86):
username_exists('admin') #1
E:\xampp\htdocs\wordpress\wp-settings.php(255):
include_once('E:\xampp\htdocs...') #2
E:\xampp\htdocs\wordpress\wp-config.php(89):
require_once('E:\xampp\htdocs...') #3
E:\xampp\htdocs\wordpress\wp-load.php(37):
require_once('E:\xampp\htdocs...') #4
E:\xampp\htdocs\wordpress\wp-blog-header.php(13):
require_once('E:\xampp\htdocs...') #5
E:\xampp\htdocs\wordpress\index.php(17):
require('E:\xampp\htdocs...') #6 {main} thrown in
E:\xampp\htdocs\wordpress\wp-includes\user.php on line 1271
How can i fix it ?
I include 'pluggable.php' in my plugin and problem fixed
include_once(ABSPATH . 'wp-includes/pluggable.php');

I connect Twitter and Google, but then error: {"message":"SSL is required","code":92}]}

I use sparks with Codeigniter and want connect Social Platforms. Facebook works, but twitter and google not.
My error:
Fatal error: Uncaught exception 'Exception' with message 'Error
fetching remote https://api.twitter.com/oauth/access_token [ status
401 ] Invalid /
expired Token /oauth/access_token '
in
/home/binotumv/public_html/beta/sparks/oauth/0.3.1/libraries/OAuth.php:87
Stack trace: #0
/home/binotumv/public_html/beta/sparks/oauth/0.3.1/libraries/Request.php(504):
OAuth::remote('https://api.twi...', Array) #1
/home/binotumv/public_html/beta/sparks/oauth/0.3.1/libraries/Request/Access.php(20):
OAuth_Request->execute(NULL) #2
/home/binotumv/public_html/beta/sparks/oauth/0.3.1/libraries/Provider.php(214):
OAuth_Request_Access->execute() #3
/home/binotumv/public_html/beta/application/controllers/auth.php(74):
OAuth_Provider->access_token(Object(OAuth_Consumer),
Object(OAuth_Token_Request)) #4 [internal function]:
Auth->oauth('twitter') #5
/home/binotumv/public_html/beta/system/core/CodeIgniter.php(359):
call_user_func_array(Array, Array) #6 /home in
/home/binotumv/public_html/beta/sparks/oauth/0.3.1/libraries/OAuth.php
on line 87
What can i do my code for solution? Thank you.

Categories