Page 1 of 1
warning: Constant MODULE_CONTENT_CAS_CONTINUE_BUTTON_DESCRIPTION
Posted: Mon Aug 22, 2022 9:17 pm
by jan_hartvig
after installing a new version of Phoenix i get this :
Warning: Constant MODULE_CONTENT_CAS_CONTINUE_BUTTON_DESCRIPTION already defined in /customers/4/2/e/divesupport.se/httpd.www/includes/languages/english/modules/content/create_account_success/cm_cas_continue_button.php on line 16 Warning: Constant MODULE_CONTENT_CAS_CONTINUE_BUTTON_TEXT already defined in /customers/4/2/e/divesupport.se/httpd.www/includes/languages/english/modules/content/create_account_success/cm_cas_continue_button.php on line 18
Re: warning: Constant MODULE_CONTENT_CAS_CONTINUE_BUTTON_DESCRIPTION
Posted: Tue Aug 23, 2022 7:47 am
by Denzel
Maybe you have missed to delete some language files while update? It will be easier to help, if you drop some more infos: From which to which version did you update? Is it a plain install, or full of addons?
Re: warning: Constant MODULE_CONTENT_CAS_CONTINUE_BUTTON_DESCRIPTION
Posted: Tue Aug 23, 2022 4:48 pm
by jan_hartvig
Hi
I just installed the latest version, a plain installation, put in addon "zipurDataWizard_1_1_2" and "Horizontel meny"
When I push the "content link" this error codes appears above.
I haven't change the language yet
This is how the file is coded:
Code: Select all
<?php
/*
$Id$
CE Phoenix, E-Commerce made Easy
https://phoenixcart.org
Copyright (c) 2021 Phoenix Cart
Released under the GNU General Public License
*/
class cm_cas_continue_button extends abstract_executable_module {
const CONFIG_KEY_BASE = 'MODULE_CONTENT_CAS_CONTINUE_BUTTON_';
public function __construct() {
parent::__construct(__FILE__);
}
public function execute() {
$origin_href = $_SESSION['navigation']->pop_snapshot_as_link();
$tpl_data = [ 'group' => $this->group, 'file' => __FILE__ ];
include 'includes/modules/content/cm_template.php';
}
protected function get_parameters() {
return [
'MODULE_CONTENT_CAS_CONTINUE_BUTTON_STATUS' => [
'title' => 'Enable Button Module',
'value' => 'True',
'desc' => 'Do you want to enable this module?',
'set_func' => "Config::select_one(['True', 'False'], ",
],
'MODULE_CONTENT_CAS_CONTINUE_BUTTON_CONTENT_WIDTH' => [
'title' => 'Content Width',
'value' => '12',
'desc' => 'What width container should the content be shown in?',
'set_func' => "Config::select_one(['12', '11', '10', '9', '8', '7', '6', '5', '4', '3', '2', '1'], ",
],
'MODULE_CONTENT_CAS_CONTINUE_BUTTON_SORT_ORDER' => [
'title' => 'Sort Order',
'value' => '30',
'desc' => 'Sort order of display. Lowest is displayed first.',
],
];
}
}
Re: warning: Constant MODULE_CONTENT_CAS_CONTINUE_BUTTON_DESCRIPTION
Posted: Wed Aug 24, 2022 5:29 am
by Denzel
Sorry, I don't know this addon. Maybe @zipurman can help you...
Re: warning: Constant MODULE_CONTENT_CAS_CONTINUE_BUTTON_DESCRIPTION
Posted: Wed Aug 24, 2022 5:57 am
by zipurman
The error would be due to having multiple language declarations for MODULE_CONTENT_CAS_CONTINUE_BUTTON_DESCRIPTION
i would recommend removing and re-adding that continue button module.
Should have nothing to do with DW or HM.
Re: warning: Constant MODULE_CONTENT_CAS_CONTINUE_BUTTON_DESCRIPTION
Posted: Wed Aug 24, 2022 7:39 am
by zipurman
Looking at this again, the file /customers/4/2/e/divesupport.se/httpd.www/includes/languages/english/modules/content/create_account_success/cm_cas_continue_button.php has mentions of:
MODULE_CONTENT_CAS_CONTINUE_BUTTON_DESCRIPTION
MODULE_CONTENT_CAS_CONTINUE_BUTTON_TEXT
You must also have these defined somewhere else in your store. You could use this addon to search and find where the extra entries are:
app.php/addons/free_addon/language_search_edit/