Jump to content
  • 0

Available Payment Gateways Module Blank


Question

Posted

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!

17 answers to this question

Recommended Posts

  • 0
Posted

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)) {
  • 0
Posted

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.

  • 0
Posted

May we have your OS, PHP Version, MySQL version so that helps the devs if they pop in to see the thread.

 

Also do you a "gateways" table in your database (You can check this in PHPMyAdmin).

  • 0
Posted

CentOS 6, MySQL 5.5.32, PHP 5.4.17. I do have a gateways table. Thank you!

 

Ok thanks mate that will help them, does the modules / plugins page go white? or any other pages that don't work?

  • 0
Posted

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?

  • 0
Posted

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
  • 0
Posted

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?

  • 0
Posted

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)

  • 0
Posted

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)

Oh I see haha :D 

  • 0
Posted

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

  • 0
Posted

/home/planitar/public_html/clients/components/gateways/merchant/./..php
Uncaught Exception, code: 0 in /home/planitar/public_html/clients/components/gateways/gateways.php on line 43
Message: Gateway '.' does not exist

  • 0
Posted

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!

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