warning: Constant MODULE_CONTENT_CAS_CONTINUE_BUTTON_DESCRIPTION

Ask the community for help and support.
Post Reply
jan_hartvig
Posts: 12
Joined: Sun Aug 29, 2021 11:21 am
Been thanked: 2 times

warning: Constant MODULE_CONTENT_CAS_CONTINUE_BUTTON_DESCRIPTION

Post 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
Denzel
VIP Member
VIP Member
Posts: 98
Joined: Sat Oct 31, 2020 7:22 pm
Has thanked: 9 times
Been thanked: 15 times

Re: warning: Constant MODULE_CONTENT_CAS_CONTINUE_BUTTON_DESCRIPTION

Post 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?
jan_hartvig
Posts: 12
Joined: Sun Aug 29, 2021 11:21 am
Been thanked: 2 times

Re: warning: Constant MODULE_CONTENT_CAS_CONTINUE_BUTTON_DESCRIPTION

Post 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.',
        ],
      ];
    }

  }
Denzel
VIP Member
VIP Member
Posts: 98
Joined: Sat Oct 31, 2020 7:22 pm
Has thanked: 9 times
Been thanked: 15 times

Re: warning: Constant MODULE_CONTENT_CAS_CONTINUE_BUTTON_DESCRIPTION

Post by Denzel »

Sorry, I don't know this addon. Maybe @zipurman can help you...
User avatar
zipurman
PhoenixCart Developer
PhoenixCart Developer
Posts: 470
Joined: Tue Oct 13, 2020 5:20 pm
Has thanked: 84 times
Been thanked: 147 times

Re: warning: Constant MODULE_CONTENT_CAS_CONTINUE_BUTTON_DESCRIPTION

Post 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.
zipurman
aka Preston Lord
-----------
Happy to help where I can ;)

https://phoenixaddons.com
https://www.youtube.com/zipurman/ ** PHOENIX HOW-TO VIDEOS **
Image
User avatar
zipurman
PhoenixCart Developer
PhoenixCart Developer
Posts: 470
Joined: Tue Oct 13, 2020 5:20 pm
Has thanked: 84 times
Been thanked: 147 times

Re: warning: Constant MODULE_CONTENT_CAS_CONTINUE_BUTTON_DESCRIPTION

Post 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/
zipurman
aka Preston Lord
-----------
Happy to help where I can ;)

https://phoenixaddons.com
https://www.youtube.com/zipurman/ ** PHOENIX HOW-TO VIDEOS **
Image
Post Reply