Forums / Addon Payment Modules / Protx Module Missing in Payment Modules List in my admin

Protx Module Missing in Payment Modules List in my admin

Locked

Started by edzpgt on 22 Jul 2009, 11:45 AM · Views: 3,305

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
22 Jul 2009, 11:45 AM
#1
edzpgt avatar

edzpgt

New Zenner

Join Date:
Jul 2009
Posts:
9
Plugin Contributions:
0

Protx Module Missing in Payment Modules List in my admin

Hi All,

When I first installed the Protx module, it appeared in the payment modules list. I clicked the 'Install' button on the right hand side and the screen refreshed. At this point the Protx module had disappeared and I've not seen it since.

I've seen the FAQ that mentions removing duplicate Protx files and reinstalling all module files. I've done this but I'm still having the same issue.

Any ideas?

Zen Cart version: 1.3.8a
Fresh Install with Pear & Crypt_Blowfish installed

This is the first time I've used ZenCart or anything like it for ecommerce.

23 Jul 2009, 7:21 AM
#2
edzpgt avatar

edzpgt

New Zenner

Join Date:
Jul 2009
Posts:
9
Plugin Contributions:
0

Re: Protx Module Missing in Payment Modules List in my admin

One thing has come to mind since I wrote this post and I don't know if it might be relevant...

When I installed the Protx module, I didn't upload the "_docs" directory. I have since uploaded it and it's made no difference but I wonder if its absence at the time of clicking the 'Install' button has caused this problem.

Any ideas please?

23 Jul 2009, 11:55 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Protx Module Missing in Payment Modules List in my admin

Use the utility mentioned in this article, and install it on the admin side (as referenced in the instructions). Then go to your modules list. Then check for the debug log file, open it, and see what PHP error has occurred. Post the error here if you don't know what to do with the error details. Might look it up in the FAQ section first.

https://www.zen-cart.com/tutorials/index.php?article=82

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Jul 2009, 5:26 PM
#4
edzpgt avatar

edzpgt

New Zenner

Join Date:
Jul 2009
Posts:
9
Plugin Contributions:
0

Re: Protx Module Missing in Payment Modules List in my admin

Hi,

Thanks for the reply.

Here is the result of the debug error:

[23-Jul-2009 18:24:11] PHP Fatal error: Call to undefined function file_exists_in_include_path() in /var/www/vhosts/(domain)/httpdocs/includes/languages/english/modules/payment/protx_direct.php on line 41

Hope you can tell from that what the issue is!

Thanks again.

23 Jul 2009, 7:35 PM
#5
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Protx Module Missing in Payment Modules List in my admin

That suggests that maybe one or more of the files that came with the module didn't get properly uploaded to the server.
When you unzipped the addon, it should have contained several folders (if it didn't then you need to tell it to retain/include/show the folders when you unzip it).
The files from those folders need to go to the same folder structure on your server. Perhaps you missed one or more? or didn't put them in the right place?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Jul 2009, 8:59 PM
#6
edzpgt avatar

edzpgt

New Zenner

Join Date:
Jul 2009
Posts:
9
Plugin Contributions:
0

Re: Protx Module Missing in Payment Modules List in my admin

I've looked at the code of the protx php file quoted in the error message. The only reference to that function seems to test for the existance of 'Crypt/Blowfish.php'.

The Crypt folder containing the Blowfish.php file lives in the root but the php script seems to have no preceding slash so I assume it to be a path relative to whatever file is using that include.

Since the modules.php file is in the 'configure' directory it would suggest to me that the code is looking for the a path as follows:
configure/Crypt/Blowfish.php

To me, this would suggest that the script is written badly but if this is the case then surely everyone would run into this problem. I'm confused.

I've commented out the code that checks for the existance of this file. Now the protx module appears in the modules list. There is now a warning displayed as follows:
"Warning: The Protx Direct Database Table Does Not Exist!
Please create the database table, according to the installation instructions!"

I have already created the table using the sql file in the protx package. However, when I examine the code for this issue, it quotes:
"$table_exists_query = 'SHOW TABLES LIKE "' . TABLE_PROTX_DIRECT"
Well all of my tables are prefixed with 4 characters for security purposes and so my table is actually called wxyzprotx_direct. I wonder if this is causing an issue?

Again, since it seems good practice to install Zen Cart using a table prefix I would be really suprised if nobody else has run into this problem already.

I can't just go and comment out all the bits that come up with errors because that's defeating the object. I need to fix the root causes of the issues.

Any more ideas?

PS. I've tried copying all the protx module files up to the web site several times and it's made no difference.

23 Jul 2009, 9:06 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Protx Module Missing in Payment Modules List in my admin

edzpgt:

I have already created the table using the sql file in the protx package. However, when I examine the code for this issue, it quotes:
"$table_exists_query = 'SHOW TABLES LIKE "' . TABLE_PROTX_DIRECT"
Well all of my tables are prefixed with 4 characters for security purposes and so my table is actually called wxyzprotx_direct. I wonder if this is causing an issue?Yes, it most likely is.

However, the constant "TABLE_PROTX_DIRECT" should be defined in one of the PHP files that came with the addon, and should already include the DB_PREFIX as part of the defined value, which therefore should already take the prefix into account when querying the table.

edzpgt:

Again, since it seems good practice to install Zen Cart using a table prefix...Actually, in my opinion, it is ill-advised to use prefixes unless you need to distinguish one set of tables from another inside the same database.

edzpgt:

I can't just go and comment out all the bits that come up with errors because that's defeating the object. I need to fix the root causes of the issues.True enough.

I'm going to defer to conor for further assistance with the module.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

24 Jul 2009, 11:13 AM
#8
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Protx Module Missing in Payment Modules List in my admin

Hi,

edzpgt:

[23-Jul-2009 18:24:11] PHP Fatal error: Call to undefined function file_exists_in_include_path() in /var/www/vhosts/(domain)/httpdocs/includes/languages/english/modules/payment/protx_direct.php on line 41

Hope you can tell from that what the issue is!

Yes indeed. You are missing a file from the distribution. However, I can further tell that you are using a VERY old version of the module!

Please download the latest version from the downloads area. You'll find "upgrading" instructions in the _docs folder, please follow them and everything should be fine. It should only take a few minutes.

There hasn't been a version of the module with a languages file that calls a function called file_exists_in_include_path() for close to a year now! (Where did you get the module from?! It's very out of date!).

Hope that helps!

All the best...

Conor
ceon

NOTE: We are sorry that Conor is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

24 Jul 2009, 2:49 PM
#9
edzpgt avatar

edzpgt

New Zenner

Join Date:
Jul 2009
Posts:
9
Plugin Contributions:
0

Re: Protx Module Missing in Payment Modules List in my admin

Hi Conor - thanks for your help.

Unfortunately, I seem to be back with a similar issue though:

[24-Jul-2009 15:38:57] PHP Fatal error: Call to undefined function ceon_file_exists_in_include_path() in /var/www/vhosts/domain.com/httpdocs/includes/modules/payment/protx_direct.php on line 168

Where exactly is the system expecting to find the PEAR files and the Crypt files?

24 Jul 2009, 3:18 PM
#10
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Protx Module Missing in Payment Modules List in my admin

Hi,

edzpgt:

Hi Conor - thanks for your help.

Unfortunately, I seem to be back with a similar issue though:

[24-Jul-2009 15:38:57] PHP Fatal error: Call to undefined function ceon_file_exists_in_include_path() in /var/www/vhosts/domain.com/httpdocs/includes/modules/payment/protx_direct.php on line 168

That means you haven't uploaded the file

includes/functions/extra_functions/ceon_file_system_functions.php

Upload it and everything should be okay.

edzpgt:

Where exactly is the system expecting to find the PEAR files and the Crypt files?

This issue has nothing to do with with either PEAR or Crypt_Blowfish! It's just a case of not having uploaded a file the module uses.

All the best...

Conor
ceon

NOTE: We are sorry that Conor is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

24 Jul 2009, 3:25 PM
#11
edzpgt avatar

edzpgt

New Zenner

Join Date:
Jul 2009
Posts:
9
Plugin Contributions:
0

Re: Protx Module Missing in Payment Modules List in my admin

Well, I'm sorry but the file IS there.

includes/functions/extra_functions/ceon_file_system_functions.php

I just don't get it. How can it be so difficult! :dontgetit

24 Jul 2009, 3:36 PM
#12
edzpgt avatar

edzpgt

New Zenner

Join Date:
Jul 2009
Posts:
9
Plugin Contributions:
0

Re: Protx Module Missing in Payment Modules List in my admin

I understand the basics of PHP and now I kind of see where you're coming from thinking that the file isn't there. The error says it can't find the function and, since the function is declared in the file that you said was missing, I can see why you said I'd missed it.

However, since it is there, there must be another explaination. What file is the one that requests the include of ceon_file_system_functions.php ?

24 Jul 2009, 3:47 PM
#13
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Protx Module Missing in Payment Modules List in my admin

Hi,

edzpgt:

However, since it is there, there must be another explaination. What file is the one that requests the include of ceon_file_system_functions.php ?

Zen Cart autoloads all files in the

includes/functions/extra_functions

directory.

There's another file on the admin side which loads the functions for use in the admin. You may have forgotten to upload it:

admin/includes/functions/extra_functions/ceon_file_system_functions.php

If both those files are there and not blank (sometimes some FTP software messes up and creates the file but doesn't actually upload its contents!) then since you haven't modified Zen Cart itself, the only other possibility is that the function_exists() function isn't working on your server.

If you confirm that both files are there then please get in contact with me privately using this link with FTP and admin details and I can take a look to see what's wrong with your server. Of course for peace of mind you can delete any temporary accounts created afterwards. Just make sure the FTP account has full write access.

All the best...

Conor
ceon

NOTE: We are sorry that Conor is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

24 Jul 2009, 3:51 PM
#14
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Protx Module Missing in Payment Modules List in my admin

Hi,

Reading my last response and thinking about the fact that this happened with two different versions of the module I've realised that you've probably renamed your admin directory but uploaded the admin files for the module into a folder called "admin" which is not used on your server.

Upload the files from the "admin" folder in the module distribution to whatever your admin folder is called and everything should work fine.

By the way, you didn't say.. where did you get the really old version of the module? (There shouldn't be anywhere that a year old version should be available to download!).

All the best...

Conor
ceon

NOTE: We are sorry that Conor is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

24 Jul 2009, 4:45 PM
#15
edzpgt avatar

edzpgt

New Zenner

Join Date:
Jul 2009
Posts:
9
Plugin Contributions:
0

Re: Protx Module Missing in Payment Modules List in my admin

:oops:
You're right - I'd renamed the admin folder and hadn't noticed that I'd ended up with another one once I'd uploaded the Protx module. Good thinking Batman!

I've removed the new admin folder and uploaded it's contents to the renamed location. It all seems to work now. :clap:

As for where I got the older version from....
I've searched high and low and just cannot find where I got the link from. I 'think' that I found it in a forum post (possibly one of yours) announcing the release of the module or the relase of an update to the module.

The version I had found was protx_ukireland_merchant_accounts_2-2-2.zip

Thanks for your help so far - I'm sure I'll probably need your help further down the line though ;)

Ed.

24 Jul 2009, 6:37 PM
#16
conor avatar

conor

Passed

Join Date:
Aug 2004
Location:
Belfast, Northern Ireland
Posts:
2,480
Plugin Contributions:
4

Re: Protx Module Missing in Payment Modules List in my admin

Hi,

edzpgt:

You're right - I'd renamed the admin folder and hadn't noticed that I'd ended up with another one once I'd uploaded the Protx module. Good thinking Batman!

No problem! ;)

edzpgt:

As for where I got the older version from....
I've searched high and low and just cannot find where I got the link from. I 'think' that I found it in a forum post (possibly one of yours) announcing the release of the module or the relase of an update to the module.

The version I had found was protx_ukireland_merchant_accounts_2-2-2.zip

That's bizarre. The file has never gone by that name.. someone else must be distributing it somewhere but a really old version!

Thanks for letting me know. Have a good weekend!

All the best...

Conor
ceon

NOTE: We are sorry that Conor is no longer with us.
We are grateful for all his contributions to the Zen Cart community.