VirtueMart Forum

VirtueMart 2 + 3 + 4 => General Questions => Topic started by: modernmagic on March 03, 2023, 22:55:07 PM

Title: wrapper menu gives 0 - Class 'vmJsApi' not found
Post by: modernmagic on March 03, 2023, 22:55:07 PM
This joomla wrapper menu item will not work and displays a 0 - Class 'vmJsApi' not found
https://retaildisplayusa.com/flipbuilder

VirtueMart 4.0.12 10777
J 3.10.11

How do I stop VM from messing up the joomla wrapper for iframes?

Or is there another way to display an iframe that VM will not mess up?
Title: Re: wrapper menu gives 0 - Class 'vmJsApi' not found
Post by: GJC Web Design on March 04, 2023, 11:19:46 AM
find the error trace so u know where & why something from VM is being called

https://forum.virtuemart.net/index.php?topic=117042.0
Title: Re: wrapper menu gives 0 - Class 'vmJsApi' not found
Post by: modernmagic on March 04, 2023, 23:50:31 PM
RuposTel.com plg_system_fatal_catcher plugin detected a problem with your site.
Your site caused a blank screen upon a visit of this URL:

https://retaildisplayusa.com/flipbuilder

Error message data:
E_ERROR:1 0: Class 'vmJsApi' not found in file: /home/customer/www/retaildisplayusa.com/public_html/modules/mod_virtuemart_cart_tf/mod_virtuemart_cart_tf.php line: 14

timestamp: 2023-03-04T22:49:41+00:00


To disable these emails proceed to your Extensions -> Plug-in manager -> disable plg_system_fatal_catcher
It is very important that you fix all php fatal errors on your site. Resend this email to your developer.

Backtrace:
/home/customer/www/retaildisplayusa.com/public_html/modules/mod_virtuemart_cart_tf/mod_virtuemart_cart_tf.php:14

Standard Exception Backtrace with Args:
/home/customer/www/retaildisplayusa.com/public_html/plugins/system/t3/includes/joomla4/ModuleHelper.php:256
/home/customer/www/retaildisplayusa.com/public_html/plugins/system/t3/includes/joomla4/ModuleHelper.php:65 (stdClass,Joomla\Registry\Registry,_)
/home/customer/www/retaildisplayusa.com/public_html/libraries/src/Document/Renderer/Html/ModuleRenderer.php:98 (stdClass,_)
/home/customer/www/retaildisplayusa.com/public_html/libraries/src/Document/Renderer/Html/ModulesRenderer.php:47 (stdClass,_,_)
/home/customer/www/retaildisplayusa.com/public_html/libraries/src/Document/HtmlDocument.php:511 ("user-11",_,_)
/home/customer/www/retaildisplayusa.com/public_html/libraries/src/Document/HtmlDocument.php:803 ("modules","user-11",_)
/home/customer/www/retaildisplayusa.com/public_html/libraries/src/Document/HtmlDocument.php:577
/home/customer/www/retaildisplayusa.com/public_html/libraries/src/Application/CMSApplication.php:1112 (_,_)
/home/customer/www/retaildisplayusa.com/public_html/libraries/src/Application/SiteApplication.php:778
/home/customer/www/retaildisplayusa.com/public_html/libraries/src/Application/CMSApplication.php:231
/home/customer/www/retaildisplayusa.com/public_html/index.php:49

Standard Backtrace:
/home/customer/www/retaildisplayusa.com/public_html/plugins/system/fatal_catcher/fatal_catcher.php 628



_SERVER:
array (
'REDIRECT_HTTPS' => 'on',
'REDIRECT_UNIQUE_ID' => 'ZAPLBSVCuyWhNMt2pK4AvAAAAAE',
'REDIRECT_HTTP_AUTHORIZATION' => '',
'REDIRECT_STATUS' => '200',
'HTTPS' => 'on',
'UNIQUE_ID' => 'ZAPLBSVCuyWhNMt2pK4AvAAAAAE',
'HTTP_X_REAL_IP' => '200.5.49.50',
'HTTP_X_FORWARDED_PROTO' => 'https',
'HTTP_X_FORWARDED_FOR' => '200.5.49.50',
'HTTP_HOST' => 'retaildisplayusa.com',
'HTTP_X_ACCEPT_ENCODING' => 'gzip',
'HTTP_CONNECTION' => 'close',
'HTTP_SG_CDNREQ' => '7',
'HTTP_SEC_CH_UA' => '"Chromium";v="110", "Not A(Brand";v="24", "Google Chrome";v="110"',
'HTTP_SEC_CH_UA_MOBILE' => '?0',
'HTTP_SEC_CH_UA_PLATFORM' => '"macOS"',
'HTTP_DNT' => '1',
'HTTP_UPGRADE_INSECURE_REQUESTS' => '1',
'HTTP_USER_AGENT' => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36',
'HTTP_ACCEPT' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
'HTTP_SEC_FETCH_SITE' => 'none',
'HTTP_SEC_FETCH_MODE' => 'navigate',
'HTTP_SEC_FETCH_USER' => '?1',
'HTTP_SEC_FETCH_DEST' => 'document',
'HTTP_ACCEPT_LANGUAGE' => 'en-US,en;q=0.9',
'HTTP_SEC_GPC' => '1',
'HTTP_COOKIE' => '82ba09a9cdb7ebbd6549f90611e6069e=en-GB; km_ai=lJqJKfGcIhS8%2B%2BHKHuygc4SD6Os%3D; km_lv=x; _ga=GA1.2.2016970093.1669848025; _clck=1yz6h4q|1|f83|0; 0047a5a785604593c469b8d07fc185a7=e94ce08712c9374d5a1b9f748f897ea2; 16ee178eb9b504adb3c4c9c9d9b4d285=38dce3c9c3f01a1742d9683a5e9c7f76',
'PATH' => '/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin',
'SERVER_SIGNATURE' => '',
'SERVER_SOFTWARE' => 'Apache',
'SERVER_NAME' => 'retaildisplayusa.com',
'SERVER_ADDR' => '35.222.23.148',
'SERVER_PORT' => '443',
'REMOTE_ADDR' => '200.5.49.50',
'DOCUMENT_ROOT' => '/home/customer/www/retaildisplayusa.com/public_html',
'REQUEST_SCHEME' => 'https',
'CONTEXT_PREFIX' => '',
'CONTEXT_DOCUMENT_ROOT' => '/home/customer/www/retaildisplayusa.com/public_html',
'SERVER_ADMIN' => '[no address given]',
'SCRIPT_FILENAME' => '/home/customer/www/retaildisplayusa.com/public_html/index.php',
'REMOTE_PORT' => '12136',
'REDIRECT_URL' => '/flipbuilder',
'GATEWAY_INTERFACE' => 'CGI/1.1',
'SERVER_PROTOCOL' => 'HTTP/1.0',
'REQUEST_METHOD' => 'GET',
'QUERY_STRING' => '',
'REQUEST_URI' => '/flipbuilder',
'SCRIPT_NAME' => '/index.php',
'PHP_SELF' => '/index.php',
'REQUEST_TIME_FLOAT' => 1677970181.29712200164794921875,
'REQUEST_TIME' => 1677970181,
)

_REQUEST:
<pre>
/*<![CDATA[*/
array (
'82ba09a9cdb7ebbd6549f90611e6069e' => 'en-GB',
'km_ai' => 'lJqJKfGcIhS8++HKHuygc4SD6Os=',
'km_lv' => 'x',
'_ga' => 'GA1.2.2016970093.1669848025',
'_clck' => '1yz6h4q|1|f83|0',
'0047a5a785604593c469b8d07fc185a7' => 'e94ce08712c9374d5a1b9f748f897ea2',
'16ee178eb9b504adb3c4c9c9d9b4d285' => '38dce3c9c3f01a1742d9683a5e9c7f76',
)
/*]]>*/
</pre>
Title: Re: wrapper menu gives 0 - Class 'vmJsApi' not found
Post by: jenkinhill on March 05, 2023, 13:02:52 PM
Third-party cart module?  mod_virtuemart_cart_tf  need updating for VM4?
Title: Re: wrapper menu gives 0 - Class 'vmJsApi' not found
Post by: modernmagic on March 06, 2023, 15:25:24 PM
thank you.  This must have been part of the themeforest template package.

I am talking the client into abandoning this problematic template and this is the last straw.
Title: Re: wrapper menu gives 0 - Class 'vmJsApi' not found
Post by: GJC Web Design on March 06, 2023, 17:39:13 PM
it might only need

if (!class_exists( 'VmConfig' )) require(JPATH_ROOT .'/administrator/components/com_virtuemart/helpers/config.php');
VmConfig::loadConfig();

added at the top of that file
Title: Re: wrapper menu gives 0 - Class 'vmJsApi' not found
Post by: modernmagic on March 09, 2023, 20:23:59 PM
Quote from: GJC Web Design on March 06, 2023, 17:39:13 PM
it might only need

if (!class_exists( 'VmConfig' )) require(JPATH_ROOT .'/administrator/components/com_virtuemart/helpers/config.php');
VmConfig::loadConfig();

added at the top of that file

I think this resolved it! 

fatal_catcher.php is no longer sending me error messages for this page https://retaildisplayusa.com/flipbuilder

Thank you very much!!!