Jump to content


Corporate Sponsors


Latest News: (loading..)

Sage Pay missing file error in administration, can't alter settings...


  • You cannot reply to this topic
3 replies to this topic

#1 dantiatto

  • Community Member
  • 4 posts
  • Real Name:Nick Cooke

Posted 16 August 2011, 10:51

Hello all,

I'm using the standard administration module in oscommerce; when I click on 'Payment' in the 'modules' menu I get the following error:

Warning: main(/var/www/vhosts/#.com/httpdocs/shop/includes/languages/english/modules/payment/protx_formSAFE.php): failed to open stream: No such file or directory in /var/www/vhosts/#.com/httpdocs/shop/admin/modules.php on line 128

Warning: main(/var/www/vhosts/#.com/httpdocs/shop/includes/languages/english/modules/payment/protx_formSAFE.php): failed to open stream: No such file or directory in /var/www/vhosts/#.com/httpdocs/shop/admin/modules.php on line 128

Warning: main(): Failed opening '/var/www/vhosts/#.com/httpdocs/shop/includes/languages/english/modules/payment/protx_formSAFE.php' for inclusion (include_path='.:/usr/share/pear') in /var/www/vhosts/#.com/httpdocs/shop/admin/modules.php on line 128

Fatal error: Cannot redeclare class protx_form in /var/www/vhosts/#.com/httpdocs/shop/includes/modules/payment/protx_formSAFE.php on line 13


sorry, I've deleted the full URL cos I'm paranoid!

anyway this is stopping me from changing settings in any module; obviously the protx_formSAFE.php file is missing, but what do I need to do to sort it? will simply copying the protx_form.php and renaming it cure this? do I need to alter some code? can anyone help an idiot out here?

many thanks in advance...

nick

#2 web-project

  • Community Member
  • 4,310 posts
  • Real Name:Alex
  • Gender:Male
  • Location:Hertfordshire, UK

Posted 17 August 2011, 08:58

it seems to me incorrect paths, as the system errors shows that protx_formSAFE.php file is missing.
Please read this line: Do you want to find all the answers to your questions? click here. As for contribution database it's located here!
8 people out of 10 don't bother to read installation manuals. I can recommend: if you can't read the installation manual, don't bother to install any contribution yourself.
Before installing contribution or editing/updating/deleting any files, do the full backup, it will save to you & everyone here on the forum time to fix your issues.
Any issues with oscommerce, I am here to help you.

#3 dantiatto

  • Community Member
  • 4 posts
  • Real Name:Nick Cooke

Posted 22 August 2011, 13:12

View Postweb-project, on 17 August 2011, 08:58, said:

it seems to me incorrect paths, as the system errors shows that protx_formSAFE.php file is missing.

thanks for reply,

the protx_formSAFE.php doesn't exist; and I'm wondering why and from where it's making the call for that particular file... is it trying load it as a separate module to the existing protx_form.php file? it must be a hangover from a 'trial run' I did on protx / sagepay when I set it up initially; it works fine by the way... I suppose it may even be a problem from an old restored backup - the trouble is I don't know where to find the file that's calling the protx_formSAFE.php to comment it out!

many thanks for any further help...

#4 dantiatto

  • Community Member
  • 4 posts
  • Real Name:Nick Cooke

Posted 22 August 2011, 13:36

View Postdantiatto, on 22 August 2011, 13:12, said:

thanks for reply,

the protx_formSAFE.php doesn't exist; and I'm wondering why and from where it's making the call for that particular file... is it trying load it as a separate module to the existing protx_form.php file? it must be a hangover from a 'trial run' I did on protx / sagepay when I set it up initially; it works fine by the way... I suppose it may even be a problem from an old restored backup - the trouble is I don't know where to find the file that's calling the protx_formSAFE.php to comment it out!

many thanks for any further help...


durr... just ignore me, there was a protx_formSAFE.php file in the modules folder it was trying to load, I'd backed it up when changing things in the proper file and left it in there, I was simply being thick! removed it and all appears fine again.