If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Addon Templates / configuration menu error

configuration menu error

Started by maperr55 on 20 Mar 2018, 3:13 AM · Views: 47,863

Results 1 to 17 of 17
20 Mar 2018, 3:13 AM
#1
maperr55 avatar

maperr55

Zen Follower

Join Date:
Aug 2007
Location:
Manitou Beach, Michigan
Posts:
357
Plugin Contributions:
0

Post #1 by maperr55

[Note: remember to include site URL, ZC version, list of plugins, PHP version, etc ... read the Posting Tips shown above for information to include in your post here. And, remove this comment before actually posting!]
https://www.mcauliffemeats.com
155f
Responsive All Business Template
CKeditor
Clean install
many carts installed

Problem: cart installed okay but any of the many items under configuration in admin just produces an error message
WARNING: An Error occurred, please refresh the page and try again.
Nothing happens when I do this.
Other menu seam to work fine.
Could not find a difference in ID's. Perhaps I am not looking in the right spot.
Mark

20 Mar 2018, 4:08 PM
#3
maperr55 avatar

maperr55

Zen Follower

Join Date:
Aug 2007
Location:
Manitou Beach, Michigan
Posts:
357
Plugin Contributions:
0

Post #3 by maperr55

mc12345678:

When this type of message is provided, the following FAQ can be helpful: https://www.zen-cart.com/content.php?311-warning-an-error-occurred-please-refresh-the-page-and-try-again

Hi, here is the log. Remove anything that should not show please.
[20-Mar-2018 05:14:08 America/Los_Angeles] Request URI: /Shawl-jPG-drIft/login.php?camefrom=configuration.php&gID=1, IP address: 67.167.169.43
#1 trigger_error() called at [/home/mcauliffe/public_html/includes/functions/plugin_support.php:41]
#2 plugin_version_check_for_updates() called at [/home/mcauliffe/public_html/Shawl-jPG-drIft/includes/init_includes/init_nmx_disk_cache_config.php:80]
#3 require(/home/mcauliffe/public_html/Shawl-jPG-drIft/includes/init_includes/init_nmx_disk_cache_config.php) called at [/home/mcauliffe/public_html/includes/autoload_func.php:48]
#4 require(/home/mcauliffe/public_html/includes/autoload_func.php) called at [/home/mcauliffe/public_html/Shawl-jPG-drIft/includes/application_top.php:171]
#5 require(/home/mcauliffe/public_html/Shawl-jPG-drIft/includes/application_top.php) called at [/home/mcauliffe/public_html/Shawl-jPG-drIft/login.php:9]

[20-Mar-2018 05:14:08 America/Los_Angeles] PHP Notice: CURL error checking plugin versions: [ in /home/mcauliffe/public_html/includes/functions/plugin_support.php on line 41

I over wrote this carts DB when I reinstalled the cart so I may have something still their I should not.
Tried checking the ID's mention in other posts but unless I'm not looking in the right spot I think they match at 11.

Thanks, :smile:
Mark

21 Mar 2018, 6:38 PM
#4
maperr55 avatar

maperr55

Zen Follower

Join Date:
Aug 2007
Location:
Manitou Beach, Michigan
Posts:
357
Plugin Contributions:
0

Post #4 by maperr55

maperr55:

Hi, here is the log. Remove anything that should not show please.
[20-Mar-2018 05:14:08 America/Los_Angeles] Request URI: /Shawl-jPG-drIft/login.php?camefrom=configuration.php&gID=1, IP address: 67.167.169.43
#1 trigger_error() called at [/home/mcauliffe/public_html/includes/functions/plugin_support.php:41]
#2 plugin_version_check_for_updates() called at [/home/mcauliffe/public_html/Shawl-jPG-drIft/includes/init_includes/init_nmx_disk_cache_config.php:80]
#3 require(/home/mcauliffe/public_html/Shawl-jPG-drIft/includes/init_includes/init_nmx_disk_cache_config.php) called at [/home/mcauliffe/public_html/includes/autoload_func.php:48]
#4 require(/home/mcauliffe/public_html/includes/autoload_func.php) called at [/home/mcauliffe/public_html/Shawl-jPG-drIft/includes/application_top.php:171]
#5 require(/home/mcauliffe/public_html/Shawl-jPG-drIft/includes/application_top.php) called at [/home/mcauliffe/public_html/Shawl-jPG-drIft/login.php:9]

[20-Mar-2018 05:14:08 America/Los_Angeles] PHP Notice: CURL error checking plugin versions: [ in /home/mcauliffe/public_html/includes/functions/plugin_support.php on line 41

I over wrote this carts DB when I reinstalled the cart so I may have something still their I should not.
Tried checking the ID's mention in other posts but unless I'm not looking in the right spot I think they match at 11.

Thanks, :smile:
Mark

Also just wanted to mention again ALL other Admin drop down menu work just fine Only the configuration menu produces this error. Kind of hard to put the cart back in Maintenance mode.

21 Mar 2018, 6:55 PM
#5
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #5 by mc12345678

maperr55:

Also just wanted to mention again ALL other Admin drop down menu work just fine Only the configuration menu produces this error. Kind of hard to put the cart back in Maintenance mode.

Within tools->Install SQL Patches:

UPDATE configuration SET configuration_value = 'true' WHERE configuration_key = 'DOWN_FOR_MAINTENANCE';

That will put the store in maintenance mode.

As to the issue, it appears that there is a CURL error with the site. Tools related to troubleshooting/investigation are available in the extras folder (if on your server, and if not could be uploaded). (extras/curltester.php)

Suggest obviously overall upgrading the site to the latest version; however, also suggest using the plugins_check.php file(s) from ZC 1.5.5f which would entail loading/replacing:

https://github.com/zencart/zencart/blob/v1.5.5f/includes/functions/plugin_support.php
and
https://github.com/zencart/zencart/blob/v1.5.5f/admin/includes/classes/VersionServer.php (note that this is in the admin folder.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

21 Mar 2018, 6:57 PM
#6
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #6 by lat9

maperr55:

Also just wanted to mention again ALL other Admin drop down menu work just fine Only the configuration menu produces this error. Kind of hard to put the cart back in Maintenance mode.
You've got the Numinix Disk Cache plugin installed and it's throwing those errors. Perhaps if you find (somewhere in the /admin/includes/auto_loaders directory) a file named something like config.nmx_disk_cache.php, you can disable that load by changing the file's extension to .php~. That way, the offending module won't be loaded (but also won't be working).

P.S. Rename your admin directory, since you've posted it for the world to see.

21 Mar 2018, 7:09 PM
#7
maperr55 avatar

maperr55

Zen Follower

Join Date:
Aug 2007
Location:
Manitou Beach, Michigan
Posts:
357
Plugin Contributions:
0

Post #7 by maperr55

Thanks,
This is a fresh install of 1.5.5f. Installed it once tried a couple of templates did not like the results. Removed the cart and did a clean install over top the DB. That is why I think something got let over. I have only installed CKeditor and Responsive all business. So those may be left overs.
Delete DB and start over or can I fix it?
Thanks,
Mark

21 Mar 2018, 7:17 PM
#8
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #8 by mc12345678

maperr55:

Thanks,
This is a fresh install of 1.5.5f. Installed it once tried a couple of templates did not like the results. Removed the cart and did a clean install over top the DB. That is why I think something got let over. I have only installed CKeditor and Responsive all business. So those may be left overs.
Delete DB and start over or can I fix it?
Thanks,
Mark

Sorry, fact check. Thought for some reason that this issue was related to ZC 1.5.4 (must have been thinking of another's issue).

Anyways, see lat9's response, which unfortunately doesn't coincide with what was just identified (clean install with only those two mods installed).

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

21 Mar 2018, 7:22 PM
#9
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #9 by lat9

mc12345678:

Sorry, fact check. Thought for some reason that this issue was related to ZC 1.5.4 (must have been thinking of another's issue).

Anyways, see lat9's response, which unfortunately doesn't coincide with what was just identified (clean install with only those two mods installed).
The log, in my mind, says it all, identifying that the issue is raised by the inclusion of /admin/includes/init_includes/init_nmx_disk_cache_config.php. That might have been part of one of the templates that @maperr5 tried, but it's the source of the issue nonetheless.

21 Mar 2018, 7:32 PM
#10
maperr55 avatar

maperr55

Zen Follower

Join Date:
Aug 2007
Location:
Manitou Beach, Michigan
Posts:
357
Plugin Contributions:
0

Post #10 by maperr55

HI,
Changed Admin
ran the curl test in extras. All test GOOD no failures
Changes the config.nmx_disk_cache.php to .php~
Still can not access any of the configuration menu options. ???
Mark

21 Mar 2018, 7:46 PM
#11
maperr55 avatar

maperr55

Zen Follower

Join Date:
Aug 2007
Location:
Manitou Beach, Michigan
Posts:
357
Plugin Contributions:
0

Post #11 by maperr55

maperr55:

HI,
Changed Admin
ran the curl test in extras. All test GOOD no failures
Changes the config.nmx_disk_cache.php to .php~
Still can not access any of the configuration menu options. ???
Mark

Also have remmed out init_nmx_disk_cache_config.php. still no go.

21 Mar 2018, 7:53 PM
#12
lat9 avatar

lat9

Administrator

Join Date:
Sep 2009
Location:
Stuart, FL
Posts:
14,144
Plugin Contributions:
56

Post #12 by lat9

And what does 'no go' mean? Did you get another log? If so, post those contents using the "CODE" tags (the big # in the menu-bar when you write your response), remembering to xxx-out the name of your (presumed-to-be) updated admin directory's name.

21 Mar 2018, 8:05 PM
#13
maperr55 avatar

maperr55

Zen Follower

Join Date:
Aug 2007
Location:
Manitou Beach, Michigan
Posts:
357
Plugin Contributions:
0

Post #13 by maperr55

Hi, Sorry Thought by removing the line admin menus might work but did not.
Here is code

[21-Mar-2018 12:52:01 America/Los_Angeles] Request URI: /XXXXXXXXX/configuration.php?gID=1, IP address: 67.167.169.43
#1  trigger_error() called at [/home/mcauliffe/public_html/includes/classes/db/mysql/query_factory.php:171]
#2  queryFactory->show_error() called at [/home/mcauliffe/public_html/includes/classes/db/mysql/query_factory.php:143]
#3  queryFactory->set_error() called at [/home/mcauliffe/public_html/includes/classes/db/mysql/query_factory.php:270]
#4  queryFactory->Execute() called at [/home/mcauliffe/public_html/XXXXXXXXX/configuration.php:136]

[21-Mar-2018 12:52:01 America/Los_Angeles] PHP Fatal error:  1054:Unknown column 'configuration_tab' in 'field list' :: SELECT configuration_id, configuration_title, configuration_value, configuration_description, configuration_key, use_function, set_function, configuration_tab 
		FROM configuration
		WHERE configuration_group_id = '1'
		ORDER BY sort_order, configuration_tab ASC ==> (as called by) /home/mcauliffe/public_html/XXXXXXXXXX/configuration.php on line 136 <== in /home/mcauliffe/public_html/includes/classes/db/mysql/query_factory.php on line 171

Mark

21 Mar 2018, 9:46 PM
#14
maperr55 avatar

maperr55

Zen Follower

Join Date:
Aug 2007
Location:
Manitou Beach, Michigan
Posts:
357
Plugin Contributions:
0

Post #14 by maperr55

maperr55:

Hi, Sorry Thought by removing the line admin menus might work but did not.
Here is code

[21-Mar-2018 12:52:01 America/Los_Angeles] Request URI: /XXXXXXXXX/configuration.php?gID=1, IP address: 67.167.169.43
#1 trigger_error() called at [/home/mcauliffe/public_html/includes/classes/db/mysql/query_factory.php:171]
#2 queryFactory->show_error() called at [/home/mcauliffe/public_html/includes/classes/db/mysql/query_factory.php:143]
#3 queryFactory->set_error() called at [/home/mcauliffe/public_html/includes/classes/db/mysql/query_factory.php:270]
#4 queryFactory->Execute() called at [/home/mcauliffe/public_html/XXXXXXXXX/configuration.php:136]

[21-Mar-2018 12:52:01 America/Los_Angeles] PHP Fatal error: 1054:Unknown column 'configuration_tab' in 'field list' :: SELECT configuration_id, configuration_title, configuration_value, configuration_description, configuration_key, use_function, set_function, configuration_tab
FROM configuration
WHERE configuration_group_id = '1'
ORDER BY sort_order, configuration_tab ASC ==> (as called by) /home/mcauliffe/public_html/XXXXXXXXXX/configuration.php on line 136 <== in /home/mcauliffe/public_html/includes/classes/db/mysql/query_factory.php on line 171

> 
> Mark

HI, this is the log info not code.
21 Mar 2018, 10:55 PM
#15
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #15 by mc12345678

maperr55:

Hi, Sorry Thought by removing the line admin menus might work but did not.
Here is code

[21-Mar-2018 12:52:01 America/Los_Angeles] Request URI: /XXXXXXXXX/configuration.php?gID=1, IP address: 67.167.169.43
#1 trigger_error() called at [/home/mcauliffe/public_html/includes/classes/db/mysql/query_factory.php:171]
#2 queryFactory->show_error() called at [/home/mcauliffe/public_html/includes/classes/db/mysql/query_factory.php:143]
#3 queryFactory->set_error() called at [/home/mcauliffe/public_html/includes/classes/db/mysql/query_factory.php:270]
#4 queryFactory->Execute() called at [/home/mcauliffe/public_html/XXXXXXXXX/configuration.php:136]

[21-Mar-2018 12:52:01 America/Los_Angeles] PHP Fatal error: 1054:Unknown column 'configuration_tab' in 'field list' :: SELECT configuration_id, configuration_title, configuration_value, configuration_description, configuration_key, use_function, set_function, configuration_tab
FROM configuration
WHERE configuration_group_id = '1'
ORDER BY sort_order, configuration_tab ASC ==> (as called by) /home/mcauliffe/public_html/XXXXXXXXXX/configuration.php on line 136 <== in /home/mcauliffe/public_html/includes/classes/db/mysql/query_factory.php on line 171

> 
> Mark

Looks like the admin/configuration.php file has/had been modified to  support the same code (plugin/template?) as previously identified.  Ie.  in building the software for this install, changes have been made that  are not related to either of the two mods that have been identified.   lat9 suggested that perhaps more than one template had been attempted  before deciding on using the responsive all business template. If that  were the case or any other attempted mod install was performed to the  fresh 1.5.5f install, then the removal of the same mod(s) was not  complete (ie. may have removed/undone some sql related work, but some  portion of the software remains).

The easy action to describe  within the forum is to rebuild the software of the site to contain just  the core files and the two mods described (plus any "personalizations"  that have been made).  The more effective path would be to possibly do  that anyways in another location and then remove any files/code from the  live site that does not belong when comparing the live site with the  rebuilt one.  A third alternative is to evaluate the differences in the  current site to a vanilla install and then "remove" any file that is not  associated with the default install and the files from the two mods.   There are ways to do this relatively quickly (Beyond Compare or other  such tools that support remote file comparison which there is at least  one open source program that supports that.)  By removal I mean taking  action similar to previously described of changing the suffix  (extension) of such file(s) to not be .php with a plan to remove the  file(s) once resolved.

Ultimately, because we are talking about  your live site, the suggested path is to first reproduce the entire site  somewhere, then take action to restore the copy of the site.  Once  successful, then reproduce those actions with the actual live site so  that although the configuration area is not currently reachable, at  least the site is still productive capable.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...

22 Mar 2018, 12:23 AM
#16
maperr55 avatar

maperr55

Zen Follower

Join Date:
Aug 2007
Location:
Manitou Beach, Michigan
Posts:
357
Plugin Contributions:
0

Post #16 by maperr55

mc12345678:

Looks like the admin/configuration.php file has/had been modified to support the same code (plugin/template?) as previously identified. Ie. in building the software for this install, changes have been made that are not related to either of the two mods that have been identified. lat9 suggested that perhaps more than one template had been attempted before deciding on using the responsive all business template. If that were the case or any other attempted mod install was performed to the fresh 1.5.5f install, then the removal of the same mod(s) was not complete (ie. may have removed/undone some sql related work, but some portion of the software remains).

The easy action to describe within the forum is to rebuild the software of the site to contain just the core files and the two mods described (plus any "personalizations" that have been made). The more effective path would be to possibly do that anyways in another location and then remove any files/code from the live site that does not belong when comparing the live site with the rebuilt one. A third alternative is to evaluate the differences in the current site to a vanilla install and then "remove" any file that is not associated with the default install and the files from the two mods. There are ways to do this relatively quickly (Beyond Compare or other such tools that support remote file comparison which there is at least one open source program that supports that.) By removal I mean taking action similar to previously described of changing the suffix (extension) of such file(s) to not be .php with a plan to remove the file(s) once resolved.

Ultimately, because we are talking about your live site, the suggested path is to first reproduce the entire site somewhere, then take action to restore the copy of the site. Once successful, then reproduce those actions with the actual live site so that although the configuration area is not currently reachable, at least the site is still productive capable.

Hi,
Thank you for the brain thought to read that error. It sound pretty obvious that the first install of the cart and other templates left entries in the DB. The reinstall of the cart though it was a clean reinstall, their were DB entries that were not over written. The site have only been up a few days and most work stopped to resolve issues. I think at this point I believe the wisest thing is blow it all away and this time a brand new DB. No left overs that way. Only lose a few hours that way.
First time I have had this much issue installing a cart and I've done more than a dozen. But the basic install worked with no problem.
Thanks for your time. :smile:
Mark

22 Mar 2018, 1:30 AM
#17
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Post #17 by mc12345678

maperr55:

Hi,
Thank you for the brain thought to read that error. It sound pretty obvious that the first install of the cart and other templates left entries in the DB. The reinstall of the cart though it was a clean reinstall, their were DB entries that were not over written. The site have only been up a few days and most work stopped to resolve issues. I think at this point I believe the wisest thing is blow it all away and this time a brand new DB. No left overs that way. Only lose a few hours that way.
First time I have had this much issue installing a cart and I've done more than a dozen. But the basic install worked with no problem.
Thanks for your time. :smile:
Mark

Well, even though the database may have some incorrect fields, it can and should be usable as is. The issue is the software trying to access it. Ie, with a brand new fileset that only tries to access the fields that are expected to exist, the worst thing is that there is/may be some database bloat which could be addressed through other means.

Reason I bring this up even if the stated actions have been performed is that existing new history can be retained while the code is corrected to do what is right...

The software drives the operations, the database retains the status.

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...