Re: Ceon URI Mapping V5.0
Hi, guys,
I´m getting this PHP Warning in my logs folder:
Code:
[05-May-2020 21:27:50 UTC] Request URI: /admin/orders.php?search=xxx&page=1&oID=9695&action=update_order, IP address: xxx
#1 CeonURIMappingLinkBuildAdmin->updateNotifySEFUInterceptAdmcathref() called at [/site.com/html/includes/classes/class.base.php:103]
#2 base->notify() called at [/site.com/html/admin/includes/functions/html_output.php:50]
#3 zen_catalog_href_link() called at [/site.com/includes/functions/functions_osh_update.php:119]
#4 zen_update_orders_history() called at [/site.com/html/admin/orders.php:158]
--> PHP Warning: Use of undefined constant ENABLE_SSL - assumed 'ENABLE_SSL' (this will throw an Error in a future version of PHP) in /site.com/html/admin/includes/classes/observers/class.CeonURIMappingLinkBuildAdmin.php on line 46.
tried a solution from the post nr. 50, but didn´t work out here. Do you have any suggestion, please, what could I try?
Thanks
Re: Ceon URI Mapping V5.0
Quote:
Originally Posted by
Doomm
Hi, guys,
I´m getting this PHP Warning in my logs folder:
Code:
[05-May-2020 21:27:50 UTC] Request URI: /admin/orders.php?search=xxx&page=1&oID=9695&action=update_order, IP address: xxx
#1 CeonURIMappingLinkBuildAdmin->updateNotifySEFUInterceptAdmcathref() called at [/site.com/html/includes/classes/class.base.php:103]
#2 base->notify() called at [/site.com/html/admin/includes/functions/html_output.php:50]
#3 zen_catalog_href_link() called at [/site.com/includes/functions/functions_osh_update.php:119]
#4 zen_update_orders_history() called at [/site.com/html/admin/orders.php:158]
--> PHP Warning: Use of undefined constant ENABLE_SSL - assumed 'ENABLE_SSL' (this will throw an Error in a future version of PHP) in /site.com/html/admin/includes/classes/observers/class.CeonURIMappingLinkBuildAdmin.php on line 46.
tried a solution from the post nr. 50, but didn´t work out here. Do you have any suggestion, please, what could I try?
Thanks
Please provide your current code content of admin/includes/classes/observers/class.CeonURIMappingLinkBuildAdmin.php from about line 40 to line 50.
Re: Ceon URI Mapping V5.0
Here it is:
Code:
$ceon_uri_mapping_href_link_builder = new CeonURIMappingHREFLinkBuilder();
}
if ($connection == 'NONSSL') {
$link = HTTP_CATALOG_SERVER;
} elseif ($connection == 'SSL') {
if (ENABLE_CATALOG_SSL == 'true') {
$link = HTTPS_CATALOG_SERVER;
} else {
$link = HTTP_CATALOG_SERVER;
}
Re: Ceon URI Mapping V5.0
Quote:
Originally Posted by
Doomm
Here it is:
Code:
$ceon_uri_mapping_href_link_builder = new CeonURIMappingHREFLinkBuilder();
}
if ($connection == 'NONSSL') {
$link = HTTP_CATALOG_SERVER;
} elseif ($connection == 'SSL') {
if (ENABLE_CATALOG_SSL == 'true') {
$link = HTTPS_CATALOG_SERVER;
} else {
$link = HTTP_CATALOG_SERVER;
}
And *still* getting the same error repeatedly? Curious about how if ENABLE_SSL is not present in that area...
Re: Ceon URI Mapping V5.0
I´m sorry, my bad, it seems that I pasted a wrong file, here is the correct one:
Code:
[06-May-2020 08:32:39 UTC] Request URI: /admin/orders.php?selected_box=customers&status=6&page=1&oID=9695&action=update_order, IP address: xxx
#1 CeonURIMappingLinkBuildAdmin->updateNotifySEFUInterceptAdmcathref() called at [/site.com/html/includes/classes/class.base.php:103]
#2 base->notify() called at [/admin/includes/functions/html_output.php:50]
#3 zen_catalog_href_link() called at [/site.com/html/includes/functions/functions_osh_update.php:119]
#4 zen_update_orders_history() called at [/admin/orders.php:158]
--> PHP Warning: Use of undefined constant ENABLE_CATALOG_SSL - assumed 'ENABLE_CATALOG_SSL' (this will throw an Error in a future version of PHP) in /admin/includes/classes/observers/class.CeonURIMappingLinkBuildAdmin.php on line 46.
[06-May-2020 08:32:39 UTC] Request URI: /admin/orders.php?selected_box=customers&status=6&page=1&oID=9695&action=update_order, IP address: xxx
#1 CeonURIMappingLinkBuildAdmin->updateNotifySEFUInterceptAdmcathref() called at [/site.com/html/includes/classes/class.base.php:103]
#2 base->notify() called at [/admin/includes/functions/html_output.php:50]
#3 zen_catalog_href_link() called at [/site.com/html/includes/functions/functions_osh_update.php:127]
#4 zen_update_orders_history() called at [/admin/orders.php:158]
--> PHP Warning: Use of undefined constant ENABLE_CATALOG_SSL - assumed 'ENABLE_CATALOG_SSL' (this will throw an Error in a future version of PHP) in /admin/includes/classes/observers/class.CeonURIMappingLinkBuildAdmin.php on line 46.
Re: Ceon URI Mapping V5.0
Quote:
Originally Posted by
Doomm
I´m sorry, my bad, it seems that I pasted a wrong file, here is the correct one:
Code:
[06-May-2020 08:32:39 UTC] Request URI: /admin/orders.php?selected_box=customers&status=6&page=1&oID=9695&action=update_order, IP address: xxx
#1 CeonURIMappingLinkBuildAdmin->updateNotifySEFUInterceptAdmcathref() called at [/site.com/html/includes/classes/class.base.php:103]
#2 base->notify() called at [/admin/includes/functions/html_output.php:50]
#3 zen_catalog_href_link() called at [/site.com/html/includes/functions/functions_osh_update.php:119]
#4 zen_update_orders_history() called at [/admin/orders.php:158]
--> PHP Warning: Use of undefined constant ENABLE_CATALOG_SSL - assumed 'ENABLE_CATALOG_SSL' (this will throw an Error in a future version of PHP) in /admin/includes/classes/observers/class.CeonURIMappingLinkBuildAdmin.php on line 46.
[06-May-2020 08:32:39 UTC] Request URI: /admin/orders.php?selected_box=customers&status=6&page=1&oID=9695&action=update_order, IP address: xxx
#1 CeonURIMappingLinkBuildAdmin->updateNotifySEFUInterceptAdmcathref() called at [/site.com/html/includes/classes/class.base.php:103]
#2 base->notify() called at [/admin/includes/functions/html_output.php:50]
#3 zen_catalog_href_link() called at [/site.com/html/includes/functions/functions_osh_update.php:127]
#4 zen_update_orders_history() called at [/admin/orders.php:158]
--> PHP Warning: Use of undefined constant ENABLE_CATALOG_SSL - assumed 'ENABLE_CATALOG_SSL' (this will throw an Error in a future version of PHP) in /admin/includes/classes/observers/class.CeonURIMappingLinkBuildAdmin.php on line 46.
Then what are the contents of the admin/includes/configure.php up to the point of the DB_ type defines? (Only need the left side of the defines if wanting to keep other information private).
Also what version of Zen Cart is being used to be able to compare the above results with what is expected?
Re: Ceon URI Mapping V5.0
This is a 1.5.6c Zencart (updated recently from 1.5.4),
here are details from configure.php (I hope you thought these, right?)
Code:
define('HTTP_SERVER', '');
define('HTTP_CATALOG_SERVER', '');
define('HTTPS_CATALOG_SERVER', '');
define('ENABLE_SSL_CATALOG', 'true');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_FS_CATALOG', '');
Re: Ceon URI Mapping V5.0
Quote:
Originally Posted by
Doomm
Here it is:
Code:
$ceon_uri_mapping_href_link_builder = new CeonURIMappingHREFLinkBuilder();
}
if ($connection == 'NONSSL') {
$link = HTTP_CATALOG_SERVER;
} elseif ($connection == 'SSL') {
if (ENABLE_CATALOG_SSL == 'true') {
$link = HTTPS_CATALOG_SERVER;
} else {
$link = HTTP_CATALOG_SERVER;
}
Quote:
Originally Posted by
Doomm
I´m sorry, my bad, it seems that I pasted a wrong file, here is the correct one:
Code:
[06-May-2020 08:32:39 UTC] Request URI: /admin/orders.php?selected_box=customers&status=6&page=1&oID=9695&action=update_order, IP address: xxx
#1 CeonURIMappingLinkBuildAdmin->updateNotifySEFUInterceptAdmcathref() called at [/site.com/html/includes/classes/class.base.php:103]
#2 base->notify() called at [/admin/includes/functions/html_output.php:50]
#3 zen_catalog_href_link() called at [/site.com/html/includes/functions/functions_osh_update.php:119]
#4 zen_update_orders_history() called at [/admin/orders.php:158]
--> PHP Warning: Use of undefined constant ENABLE_CATALOG_SSL - assumed 'ENABLE_CATALOG_SSL' (this will throw an Error in a future version of PHP) in /admin/includes/classes/observers/class.CeonURIMappingLinkBuildAdmin.php on line 46.
[06-May-2020 08:32:39 UTC] Request URI: /admin/orders.php?selected_box=customers&status=6&page=1&oID=9695&action=update_order, IP address: xxx
#1 CeonURIMappingLinkBuildAdmin->updateNotifySEFUInterceptAdmcathref() called at [/site.com/html/includes/classes/class.base.php:103]
#2 base->notify() called at [/admin/includes/functions/html_output.php:50]
#3 zen_catalog_href_link() called at [/site.com/html/includes/functions/functions_osh_update.php:127]
#4 zen_update_orders_history() called at [/admin/orders.php:158]
--> PHP Warning: Use of undefined constant ENABLE_CATALOG_SSL - assumed 'ENABLE_CATALOG_SSL' (this will throw an Error in a future version of PHP) in /admin/includes/classes/observers/class.CeonURIMappingLinkBuildAdmin.php on line 46.
Quote:
Originally Posted by
Doomm
This is a 1.5.6c Zencart (updated recently from 1.5.4),
here are details from configure.php (I hope you thought these, right?)
Code:
define('HTTP_SERVER', '');
define('HTTP_CATALOG_SERVER', '');
define('HTTPS_CATALOG_SERVER', '');
define('ENABLE_SSL_CATALOG', 'true');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_FS_CATALOG', '');
Quote:
Originally Posted by
Doomm
This is a 1.5.6c Zencart (updated recently from 1.5.4),
here are details from configure.php (I hope you thought these, right?)
Code:
define('HTTP_SERVER', '');
define('HTTP_CATALOG_SERVER', '');
define('HTTPS_CATALOG_SERVER', '');
define('ENABLE_SSL_CATALOG', 'true');
define('DIR_WS_CATALOG', '/');
define('DIR_WS_HTTPS_CATALOG', '/');
define('DIR_FS_CATALOG', '');
Double check the changes directed from back at post 50 that are copied below:
Quote:
Originally Posted by
mc12345678
Looks like those are incorrectly trying to resolve to "admin" style links instead of the expected catalog style.
in admin\includes\classes\observers\class.CeonURIMappingLinkBuildAdmin.php
Change:
Code:
if ($connection == 'NONSSL') {
$link = HTTP_SERVER;
} elseif ($connection == 'SSL') {
if (ENABLE_SSL == 'true') {
$link = HTTPS_SERVER;
} else {
$link = HTTP_SERVER;
}
}
To:
Code:
if ($connection == 'NONSSL') {
$link = HTTP_CATALOG_SERVER;
} elseif ($connection == 'SSL') {
if (ENABLE_SSL_CATALOG == 'true') {
$link = HTTPS_CATALOG_SERVER;
} else {
$link = HTTP_CATALOG_SERVER;
}
}
Notice the difference in how the "To:" section of code differs from what was provided above in this post about how the content appears... Specifically how in the problem file it says ENABLE_CATALOG_SSL instead of ENABLE_SSL_CATALOG.
(Don't worry it wasn't obvious (to me anyways) when that section of code was posted a few posts back and really it was only when the proper error message was provided that the real issue was identified.)
Re: Ceon URI Mapping V5.0
OMG, I see it now :-(
Thank you very much for your patience and help! I didn´t even think that could be the problem.
Re: Ceon URI Mapping V5.0
zen 1.56c php7.0
im getting this in logs.
PHP Fatal error: Uncaught Error: Call to a member function table_exists() on null in /var/www/clients/xxx/xxx/me/includes/classes/class.CeonURIMappingAdminEZPages.php:87