Troubleshooting: It does not work!

Troubleshooting: It does not work!

Postby admin » Wed Mar 02, 2011 10:47 am

One of the most common problems with OPC is that after installing it, you try to make an order, but you see no difference at the checkout page. This is usually caused by javascript check function which validates if customer has functioning AJAX and if it does not have it, the component will not get shown. This is common behaviour and this is how we fix it: You will need Firefox installed and have a look into the Tools -> Error Console -> Errors menu. If there are any problems there the javascript does not load and prevents the component to load. These problems might be caused by a bug in our component or a bug in your joomla install. Therefore to fix this issue, please send us a print screen of your Error Console. We try to make this component reliable on as few javascript dependences as possible. When we receive the printscreen or have a look on your site, we check if the problem is caused by our component and you should receive a fix usually in 24 hours.
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Troubleshooting: It does not work!

Postby admin » Thu Mar 03, 2011 10:43 pm

Today we fixed another install of our component. Please notice that if you get an error like this at the checkout page when php errors can be shown (in joomla global config) or a blank screen which write this to your logs:

FATAL: Cannot redeclare function .... class ...

or

PHP Fatal error: Allowed memory size of .... bytes exhausted (tried to allocate … bytes) in … (any file)

You most probably call basket.php from a file where it should not be loaded such as list_payment_methods.tpl.php and similarly. By calling basket.php from such a file creates a loop where basket.php includes a file which includes basket.php again.

To fix this, please locate such a file by searching for 'basket.php' in your VM install, usually in the template files in:
/components/com_virtuemart/themes/ (all templates)

We will fix this issue in next releases, but it is not a good standard to allow such a loop.
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Troubleshooting: It does not work!

Postby admin » Thu Mar 03, 2011 11:19 pm

Please make sure that both URL and SECUREURL from VM configuration are set for a functional site including www. prefix or not. This component will work only on SECUREURL of your configuration. Therefore if you've put http://www.domain.com in your https configuration, you cannot access it with http://domain.com Neither VirtueMart or OPC will work correcly if you don't manage this problem.

To always redirect from http://domain.com to http://www.domain.com you will need to add this to your .htaccess file in the root dir of joomla. You must put in BEFORE any other RewriteCond in your .htaccess. Please change your domain accordingly:

Code: Select all
RewriteCond %{HTTP_HOST} !^www\.rupostel\.com$ [NC]
RewriteRule ^(.*)$ http://www.rupostel.com/$1 [R=301,L]



Update:
Please insert it above any rule, just after RewriteEngine On, if you put it to the bottom of the file, the rule will not take in effect
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm

Re: Troubleshooting: It does not work!

Postby admin » Fri Mar 25, 2011 4:56 pm

If you get a problem that after clicking submit order, your cart get erased and order not saved this is usually due to an invalid html. This can be caused either by your templates or by our component. Therefore you should first have a look at the FireFox error console and if you see there any syntax errors at the cart page, please let us know. If you don't see any errors there, please copy and paste the code generated at the checkout page and insert it into w3c validator. If the validator gives you no errors, your site will be most probably compatible with browsers even from IE6+. We write our component not to depend on other extensions such as mootools even when the mootools are a really nice javascript framework. We do this to support our component on as vast amount of sites as possible.

Since version 1.2.215 we fixed an issue for $ 0.00 orders (using gift certificates or coupons) where the order total was wrongly interpreted as emty and caused a javascript malfunction and it was not possible to submit the order.

Stan
admin
Site Admin
 
Posts: 2708
Joined: Wed Jan 06, 2010 11:43 pm


Return to One Page Checkout for Virtuemart 1.1.x

cron