Jump to content
  • 0

Available Payment Gateways Module Blank


millipedeman

Question

Hey, I'm really liking Blesta 3.0. I'm going to be using it for a startup here. I'd like to setup my Stripe account to work with Blesta, but when I go to Settings > Company > Gateways > Available, I just get a blank white screen. Nothing appears and the title bar doesn't change. I don't see this happening on other pages. What can I do?

 

Thank you!

Link to comment
Share on other sites

17 answers to this question

Recommended Posts

  • 0

Try the following:

 

open /app/models/gateway_manager.php and change (line 244):

 

                    if (substr($file, 0, 1) != "." && is_dir(COMPONENTDIR . "gateways" . DS . $file . DS . $gateway)) {

 

to:

 

                    if (substr($gateway, 0, 1) != "." && is_dir(COMPONENTDIR . "gateways" . DS . $file . DS . $gateway)) {
Link to comment
Share on other sites

  • 0

Uncaught Exception, code: 0 in /home/planitar/public_html/clients/components/gateways/gateways.php on line 42

Message: Gateway '.' does not exist

 

That's the error I get when turning error reporting on.

 

Were there any other details, like a stack trace?

 

EDIT: Also, can you list all the files that are in your components/gateways/ and components/gateways/merchant/ and components/gateways/nonmerchant/ directories?

Link to comment
Share on other sites

  • 0

No other details, just those two lines. I've only seen this happen on this page.

 

/components/gateways

  • /lib
  • /merchant
  • /nonmerchant
  • gateways.php

/components/gateways/merchant

  • /authorize_net
  • /blue_pay
  • /eway
  • /payflow
  • /quantum_gateway
  • /stripe_gateway

components/gateways/nonmerchant/

  • /_2checkout
  • /google_checkout
  • /offline
  • /paypal_payments_standard
Link to comment
Share on other sites

  • 0

No other details, just those two lines. I've only seen this happen on this page.

 

/components/gateways

  • /lib
  • /merchant
  • /nonmerchant
  • gateways.php

/components/gateways/merchant

  • /authorize_net
  • /blue_pay
  • /eway
  • /payflow
  • /quantum_gateway
  • /stripe_gateway

components/gateways/nonmerchant/

  • /_2checkout
  • /google_checkout
  • /offline
  • /paypal_payments_standard

 

Erm in the merchant folder I have this also:

 

/merchant_demo_cc

 

and in nonmerchant I have:

 

/nonmerchant_demo

 

 

Do you have them too?

Link to comment
Share on other sites

  • 0

Erm in the merchant folder I have this also:

 

/merchant_demo_cc

 

and in nonmerchant I have:

 

/nonmerchant_demo

 

 

Do you have them too?

 

You have those because they shipped with the beta and you upgraded. They are sample gateways, meant really for developers.

 

Do you have the PHPIDS plugin installed by any chance? (If not, don't install it, if so, try uninstalling it)

Link to comment
Share on other sites

  • 0

Are you sure there are no hidden files or directories in there anyplace? Files that start with a "."?

 

Typically "." refers to the current directory, and if that's the issue I would expect this to occur under Available Plugins, and Available Modules as well (does this happen there?).

 

You can try editing components/gateways/gateways.php and adding this on line 40..

 

echo COMPONENTDIR . "gateways" . DS . $type . DS. $gw_file . DS . $gw_file . ".php<br>";
		if (!Loader::load(COMPONENTDIR . "gateways" . DS . $type . DS. $gw_file . DS . $gw_file . ".php"))
			throw new Exception("Gateway '" . $gw_name . "' does not exist");

Then reload, and post what was output

Link to comment
Share on other sites

  • 0

Try the following:

 

open /app/models/gateway_manager.php and change (line 244):

 

 

                    if (substr($file, 0, 1) != "." && is_dir(COMPONENTDIR . "gateways" . DS . $file . DS . $gateway)) {

 

to:

 

 

                    if (substr($gateway, 0, 1) != "." && is_dir(COMPONENTDIR . "gateways" . DS . $file . DS . $gateway)) {

That did it! Thanks for your help!

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...