VirtueMart Forum

VirtueMart 2 + 3 + 4 => Plugins: Payment, Shipment and others => Topic started by: hakan26 on March 24, 2015, 21:10:43 PM

Title: Papyal error on admin page
Post by: hakan26 on March 24, 2015, 21:10:43 PM
Hi all,

if I go to /administrator I get these errors:

Notice: Use of undefined constant JPATH_VM_PLUGINS - assumed 'JPATH_VM_PLUGINS' in /homepages/39/d444325443/htdocs/igoldshop/plugins/vmpayment/paypal/paypal.php on line 24

Notice: Use of undefined constant DS - assumed 'DS' in /homepages/39/d444325443/htdocs/igoldshop/plugins/vmpayment/paypal/paypal.php on line 24

Warning: require(JPATH_VM_PLUGINSDSvmpsplugin.php): failed to open stream: No such file or directory in /homepages/39/d444325443/htdocs/igoldshop/plugins/vmpayment/paypal/paypal.php on line 24

Fatal error: require(): Failed opening required 'JPATH_VM_PLUGINSDSvmpsplugin.php' (include_path='.:/usr/lib/php5.4') in /homepages/39/d444325443/htdocs/igoldshop/plugins/vmpayment/paypal/paypal.php on line 24

These are the lines:
defined('_JEXEC') or die('Restricted access');
if (!class_exists('vmPSPlugin')) {
   require(JPATH_VM_PLUGINS . DS . 'vmpsplugin.php');
}

How to fix?

Joomla: 3.1.4
VM: 3.0.6.2
Title: Re: Papyal error on admin page
Post by: GJC Web Design on March 24, 2015, 21:56:53 PM
QuoteJoomla: 3.1.4
???

VM3.x will ONLY run successfully on J3.3.x and above
Title: Re: Papyal error on admin page
Post by: hakan26 on March 24, 2015, 22:02:05 PM
I am using joomla 3.4.1
Title: Re: Papyal error on admin page
Post by: hakan26 on March 25, 2015, 10:28:53 AM
Someone any idea?
Title: Re: Papyal error on admin page
Post by: jenkinhill on March 25, 2015, 11:56:41 AM
Upgrade to VM3.0.6.4   http://dev.virtuemart.net/projects/virtuemart/files
Title: Re: Papyal error on admin page
Post by: hakan26 on March 25, 2015, 12:14:25 PM
Is there an easy way to upgrade?

I can not login to administrator..
Title: Re: Papyal error on admin page
Post by: triplef on May 09, 2015, 10:55:09 AM
As workaround you can rename the directory /plugins/vmpayment.
Then the login in admin area is possible.

If you then rename the directory back to the original name, the strange is, the problem is gone until your session is expired.
Title: Re: Papyal error on admin page
Post by: triplef on May 09, 2015, 11:11:04 AM
The version VM 3.0.9 don't fix the problem  :(
Title: Re: Papyal error on admin page
Post by: triplef on May 09, 2015, 12:15:21 PM
I have a fix now.

Put the two lines below on the top of the files below.

defined('DS') or define('DS', DIRECTORY_SEPARATOR);
defined('JPATH_VM_PLUGINS') or include($_SERVER['DOCUMENT_ROOT'] . DS . 'administrator' . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'config.php');

\xampp\htdocs\shop2\plugins\vmpayment\amazon\amazon.php
\xampp\htdocs\shop2\plugins\vmpayment\authorizenet\authorizenet.php
\xampp\htdocs\shop2\plugins\vmpayment\heidelpay\heidelpay.php
\xampp\htdocs\shop2\plugins\vmpayment\klarna\klarna.php
\xampp\htdocs\shop2\plugins\vmpayment\klarnacheckout\klarnacheckout.php
\xampp\htdocs\shop2\plugins\vmpayment\klikandpay\klikandpay.php
\xampp\htdocs\shop2\plugins\vmpayment\paybox\paybox.php
\xampp\htdocs\shop2\plugins\vmpayment\paypal\paypal.php
\xampp\htdocs\shop2\plugins\vmpayment\realex_hpp_api\realex_hpp_api\fields\creditcards.php
\xampp\htdocs\shop2\plugins\vmpayment\realex_hpp_api\realex_hpp_api.php
\xampp\htdocs\shop2\plugins\vmpayment\skrill\skrill.php
\xampp\htdocs\shop2\plugins\vmpayment\sofort\sofort.php
\xampp\htdocs\shop2\plugins\vmpayment\sofort_ideal\sofort_ideal.php
\xampp\htdocs\shop2\plugins\vmpayment\standard\standard.php
\xampp\htdocs\shop2\plugins\vmshipment\weight_countries\weight_countries.php
\xampp\htdocs\shop2\plugins\vmuserfield\realex_hpp_api\realex_hpp_api.php
Title: Papyal error on admin page
Post by: amymattian on August 14, 2015, 11:33:48 AM
Hi,

tried the suggestion at the bottom (adding this defined('DS') or define('DS', DIRECTORY_SEPARATOR);
defined('JPATH_VM_PLUGINS') or include($_SERVER['DOCUMENT_ROOT'] . DS . 'administrator' . DS . 'components' . DS . 'com_virtuemart' . DS . 'helpers' . DS . 'config.php');)
but it caused a new error message:

"Warning: require(VMPATH_ADMIN/helpers/vobject.php): failed to open stream: No such file or directory in
......./administrator/components/com_virtuemart/helpers/vmmodel.php on line 24"

So it did not help! I searched for similar issues, and disabled for example Gaviks GK5 and also Nonumber's extentions. The problem remains with Virtuemart and not being able to use the payment plugins for Virtuemart3.

Question is when will this bug be fixed in Virtuemart? Only by disabling ALL Virtuemart3 payment plugins we don't get any errors. So this must be a Virtuemart bug!  :-X  This is really crucial for using Virtuemart3, being able to use payment plugins.

ONe thing we noticed was that after original installation of Virtuemart3, we didnt immediately get this issue. Only after disabling virtuemart payment methods (the extra ones we did not need). Can this have something to do with this issue? Should payment plugins be kept enabled? Any idea?

- Anne