Zen Cart Logo
Forums / Addon Admin Tools / Mod List Support Thread

Mod List Support Thread

Views: 19,180

Results 21 to 40 of 52
2 May 2018, 8:35 PM
#21
lordzoabar avatar

lordzoabar

New Zenner

Join Date:
Nov 2017
Location:
Athens, Georgia, USA
Posts:
104
Plugin Contributions:
0

Mod List Support Thread

soxophoneplayer:

I had a few of these show up in the Mod List that were holdovers from previous templates I had used (with the same database). I manually deleted the applicable tables in the database via phpMyAdmin (after backing up of course).

Awesome. I did as swguy said, and used the Dev Tool Kit to find the leftover strings, but that didn't clean up the mod list (yeah, I know that doesn't REALLY matter, my boss wants a nice clean file though, so we can keep track when we next upgrade ZC). Plus I just want to debloat some of the files. we've got backups and archives (saved to the same server!) from 2011, and there's a lot of files that have just been disabled and over written a dozen times, so I've got like, config.php, config~, configbckp, config~~~, etc... And of course they all show in a file search.

9 May 2020, 12:55 PM
#23
jodean avatar

jodean

Totally Zenned

Join Date:
May 2011
Location:
Tennessee
Posts:
511
Plugin Contributions:
0

Re: Mod List Support Thread

How did you determine which tables to delete to fix the "Link cannot be created" messages in the Mod List

9 May 2020, 2:08 PM
#24
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,683
Plugin Contributions:
56

Re: Mod List Support Thread

This message means you are missing an entry from admin_pages. You can create it in Admin > Tools > Install SQL Patches or using Admin > Admins > Admin Page Registration.

9 May 2020, 11:18 PM
#25
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: Mod List Support Thread

Or... If it is left over from a former site and not brought in with the upgrade, you might see it under New Admin Pages as all caps. You can delete it from the admin_pages table.

12 Jul 2020, 5:40 PM
#26
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: Mod List Support Thread

1.5.7 - PHP 7.3.19 with Quick Updates, Clone, OPC, news box, Sales Report.

Getting huge files with repetition of```
[12-Jul-2020 17:34:51 UTC] Request URI: /******/index.php?cmd=mod_list, IP address: *******
#1 in_array() called at [/zc_plugins/ModList/1.4.0/admin/mod_list.php:75]
#2 require(/zc_plugins/ModList/1.4.0/admin/mod_list.php) called at [/
/index.php:23]
--> PHP Warning: in_array() expects parameter 2 to be array, null given in /zc_plugins/ModList/1.4.0/admin/mod_list.php on line 75.

16 Jul 2020, 11:40 AM
#27
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,683
Plugin Contributions:
56

Re: Mod List Support Thread

Thanks for this report, @dbltoe. A number of changes were required for correct interoperation with Plugin Manager, and some issues were found in Plugin Manager itself that will be addressed soon.

1.5.7 users who installed Mod List version 1.4.0 ONLY:

Please run these commands in your Tools > Install SQL Patches screen:

DELETE FROM plugin_control WHERE unique_key = 'ModList';

DELETE FROM plugin_control_versions WHERE unique_key = 'ModList';

Then grab Mod List 1.4.1 from the Plugins Library and install it.

6 Aug 2020, 5:22 PM
#28
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,955
Plugin Contributions:
8

Re: Mod List Support Thread

i am playing with 1.4.1 using the plugin manager on a base 1.5.7 system. i have a few comments. considering, we are in a 1.5.7 system, i would prefer the following change:

<?php
//from:
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
<link rel="stylesheet" type="text/css" href="includes/cssjsmenuhover.css" media="all" id="hoverJS">
<script language="javascript" src="includes/menu.js"></script>
<script language="javascript" src="includes/general.js"></script>
<script type="text/javascript">
  <!--
  function init()
  {
    cssjsmenu('navbar');
    if (document.getElementById)
    {
      var kill = document.getElementById('hoverJS');
      kill.disabled = true;
    }
  }
  // -->
</script>
</head>
<body onLoad="init()">
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->
<?php

//to:
?>
<!doctype html>
<html <?= HTML_PARAMS; ?>>
<head>
	<?php require DIR_WS_INCLUDES . 'admin_html_head.php'; ?>
    <script src="includes/general.js"></script>
</head>
<body>
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
<!-- header_eof //-->

in addition, i am not sure i understand this plugin. why does it have all of the base 1.5.7 things listed here? see:

Attachment 19127

are those items supposed to be there? those do not seem new to me....

the payment modules seem correct, but why are the shipping modules and the order total modules listed? see:

Attachment 19128

what might i be doing wrong? or reading incorrectly?

6 Aug 2020, 6:23 PM
#29
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: Mod List Support Thread

Not only are we getting everything in every menu, we are getting ```
[06-Aug-2020 18:11:43 UTC] Request URI: /jetmar/index.php?cmd=mod_list, IP address: 216.177.186.199
#1 require(/zc_plugins/ModList/1.4.1/admin/mod_list.php) called at [/jetmar/index.php:23]
--> PHP Warning: Use of undefined constant BUILT_IN_BOXES - assumed 'BUILT_IN_BOXES' (this will throw an Error in a future version of PHP) in /zc_plugins/ModList/1.4.1/admin/mod_list.php on line 75.


This winds up making a HUGE log file.:(

Looks like the system is not really picking up the admin/includes/extra_configures/modlist.php even though the define is there.

Lines 71 - 79 of admin/mod_list.php```
<?php    } else { 
       while (!$pages->EOF) {
          $key = $pages->fields['language_key']; 
          if (in_array($key, BUILT_IN_BOXES)) { 
             $pages->MoveNext();
             continue;
          }
   ?>
6 Aug 2020, 6:52 PM
#30
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,955
Plugin Contributions:
8

Re: Mod List Support Thread

yeah, i did not notice the log files, that makes sense now. i thought updates to the plugin manager had addressed this problem.

guess not.

who approved this plugin?!? :laugh::P

6 Aug 2020, 6:58 PM
#31
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,955
Plugin Contributions:
8

Re: Mod List Support Thread

dbltoe:

Looks like the system is not really picking up the admin/includes/extra_configures/modlist.php even though the define is there.

if you rename extra_configures to extra_datafiles, i think that will help.

not sure if that is 'approved'; but it resolves the issue and makes this mod work. and keeps everything within the plugins directory.

best.

6 Aug 2020, 7:05 PM
#32
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: Mod List Support Thread

carlwhat:

who approved this plugin?!? :laugh::PInquiring minds want to know!

:rotflmao:

6 Aug 2020, 7:05 PM
#33
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,683
Plugin Contributions:
56

Re: Mod List Support Thread

Are you guys using the latest Mod List on 1.5.7? That version shouldn't have any of these issues.

6 Aug 2020, 7:08 PM
#34
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: Mod List Support Thread

carlwhat:

if you rename extra_configures to extra_datafiles, i think that will help.

not sure if that is 'approved'; but it resolves the issue and makes this mod work. and keeps everything within the plugins directory.

best.
Works a treat AND it gives just the right info versus listing EVERYTHING.

6 Aug 2020, 7:09 PM
#35
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: Mod List Support Thread

1.4.1 on ZC 1.5.7 with all of 1.4.0 gone and the changes to the DB as noted by your earlier post.

6 Aug 2020, 7:12 PM
#36
carlwhat avatar

carlwhat

zennedOut

Join Date:
Nov 2005
Location:
los angeles
Posts:
2,955
Plugin Contributions:
8

Re: Mod List Support Thread

swguy:

Are you guys using the latest Mod List on 1.5.7? That version shouldn't have any of these issues.

current version does not work. my fix does.

best.

6 Aug 2020, 7:46 PM
#37
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,683
Plugin Contributions:
56

Re: Mod List Support Thread

OK I see. In 1.5.8,

$fs->loadFilesFromPluginsDirectory($installedPlugins, 'admin/includes/extra_configures', '~^[^._].*.php$~i');

was added to ./admin/includes/application_bootstrap.php. I will have to check to see if this is also intended to be added to 1.5.7. For now, you'll have to add this line manually to that file. (right above the load of extra_datafiles)

7 Aug 2020, 9:51 PM
#38
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,683
Plugin Contributions:
56

Re: Mod List Support Thread

OK the inclusion of files from admin/includes/extra_configures has been backported to 1.5.7a:
https://github.com/zencart/zencart/pull/3849

29 Dec 2020, 9:45 PM
#39
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: Mod List Support Thread

Really unusual happenings in this site. Searches are going nowhere and other admin settings seem to be affected.

This is a first for me with mod list and it is on 1.5.7b with the bootstrap fix.

[Attachment no longer available]
You'll note that all the Configuration Items are mentioned yet all are in place and seem to be working fine.

4 Jan 2021, 10:24 PM
#40
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,763
Plugin Contributions:
9

Re: Mod List Support Thread

Fixed

The problem was apparently an offshoot of remnants in an old database. Updated the collation of tables AND columns and the listing turned back to normal.