News:

Support the VirtueMart project and become a member

Main Menu

Papyal error on admin page

Started by hakan26, March 24, 2015, 21:10:43 PM

Previous topic - Next topic

hakan26

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

GJC Web Design

QuoteJoomla: 3.1.4
???

VM3.x will ONLY run successfully on J3.3.x and above
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

hakan26


hakan26


jenkinhill

Kelvyn
Lowestoft, Suffolk, UK

Retired from forum life November 2023

Please mention your VirtueMart, Joomla and PHP versions when asking a question in this forum

hakan26

Is there an easy way to upgrade?

I can not login to administrator..

triplef

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.

triplef

The version VM 3.0.9 don't fix the problem  :(

triplef

#8
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

amymattian

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