Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Payment Module Broken!


deftonez4me

Recommended Posts

oh - so you can see I have no idea - sorry. This is from the admin/includes/configure.php

 

define('HTTP_COOKIE_PATH', '/shop/');

define('HTTPS_COOKIE_PATH', '/shop/');

define('DIR_WS_HTTP_CATALOG', '/');

define('DIR_WS_HTTPS_CATALOG', '/');

define('DIR_WS_ADMIN', '/admin/');

define('DIR_WS_IMAGES', 'images/');

define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');

define('DIR_WS_INCLUDES', 'includes/');

define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');

define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');

define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');

define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');

define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']) . '/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

Link to comment
Share on other sites

oh - so you can see I have no idea - sorry. This is from the admin/includes/configure.php

Which looks the same as your catalog one and misses for example the:

define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');

Check your original download or a backup or whatever for the original admin configure.php, change it manually and upload it again to the admin side.

Link to comment
Share on other sites

Is the directory catalog/includes/modules/payment (or any other subdirectory on that level) readable for the server?

 

On line 117 it says:

  if ($dir = @dir($module_directory)) {

Why don't your remove the @ before dir and see if there is an error:

  if ($dir = dir($module_directory)) {

 

I tried this, and no error showed up... any other suggestions??

Link to comment
Share on other sites

Hi deftonez4me and everyone,

 

I am having the same problem......did you managed to get it solved?

 

How to get the payment modules working......anybody......help really appreciated urgently.

 

Thanks in advance

 

I finally figured out the problem for anyone who it might help...

 

in admin/includes/configure.php, the line that defines the constant, DIR_FS_CATALOG, was set to the relative path "/", when it should have been the absolute path:

 

define('DIR_FS_CATALOG', '/var/www/vhosts/mauisurf.com/httpdocs/'); // absolute path required

 

Hopefully this helps the others that were having this problem :thumbsup:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...