When I install Ideal for Ubercart, I can't get access to admin/store/settings/payment anymore and can't set any of my payment settings. The other configuration settings of Ubercart are still available. When I uncheck the module, the payment options are available again.

There is no missing modules according to the overview and the log report doesn't make clear either what the problem is. Any clues?

CommentFileSizeAuthor
#16 drupal_2069857_16.patch623 bytesxano
#11 idealubercart_2069857_11.patch464 bytesxano

Comments

xano’s picture

Status: Active » Postponed (maintainer needs more info)

Thanks for reporting this problem! However, without more specific information, we cannot reproduce and therefore fix the problem. Please provide step-by-step instructions on how to reproduce this problem on a fresh Drupal installation.

Gigi_’s picture

Hello Xano,

I am not sure what other information I can give you. Drupal 7.22 and all the modules I am using are working fine untill I install Ideal for Ubercart. I am not getting any error logs in Drupal, it just can't find the url admin/store/settings/payment anymore. I can access admin/store and all the other parts of ubercart, but the payment options. As soon as I uninstall the module, payment options are accessable again.

I have had this issue before when I started this project and installed Ideal and Ideal for Ubercart at the same time with Ubercart and some other basic modules. Then I decided to remove everything and start over because I couldn't figure out where the issue came from. Now I am installing module per module, and always check if the payment options still work first after each module.

In Ubercart Payment I am only using the option Paypal btw. There is no missing depencies as far as I can see.

Makes iDEAL available as an Ubercart payment method.
Requires: iDEAL API (enabled), Entity API (enabled), Payment (enabled), Order (enabled), Product (enabled), Image (enabled), File (enabled), Field (enabled), Field SQL storage (enabled), Store (enabled), Rules (enabled), Entity tokens (enabled), Views (enabled), Chaos tools (enabled)

Provides a framework to make transactions between Dutch bank accounts using the iDEAL bank transfer system.
Requires: Entity API (enabled)
Required by: iDEAL Donation Form (enabled), iDEAL For Ubercart (disabled), iDEAL Administration Interface (enabled)

I can give you access to my site if you want to check it out further. In that case, send me an email to gigi@gigi.nu. :)

janwalhof’s picture

Hello Xano,

I have the same problem as Gigi describes.

Kind regards,
Jan Walhof

xano’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)

Closing this due to lack of steps to reproduce the problem. If you can provide these steps, please post them here and re-open the issue.

monen’s picture

Enabling iDEAL for Ubercart 7x-1.3 gives WSOD "white screen of death"
Drupal 7.24
modules:
Ubercart 7x-3.5
iDEAL API 7x-2.6
while trying to enable iDEAL and navigating to admin/store/settings/payment, this results in WSOD.
enabled error reporting gives:
Fatal error: Call to undefined function idealubercart_callback() in sites/all/modules/contrib/ubercart/payment/uc_payment/uc_payment.admin.inc on line 46

Hope you can solve this issue.

kind regards,
Henk Monen

monen’s picture

Once again, the name of the actual file drops out:

Enabling iDEAL for Ubercart 7x-1.3 gives WSOD "white screen of death"
Drupal 7.24
modules:
Ubercart 7x-3.5
iDEAL API 7x-2.6
while trying to enable iDEAL and navigating to admin/store/settings/payment, this results in WSOD.
enabled error reporting gives:
Fatal error: Call to undefined function idealubercart_callback() in sites/all/modules/contrib/ubercart/payment/uc_payment/uc_payment.admin.inc on line 46

monen’s picture

Issue summary: View changes
Status: Closed (cannot reproduce) » Active
xano’s picture

Status: Active » Closed (cannot reproduce)

Please provide step-by-step instructions on how to reproduce this problem on a fresh Drupal installation.

If you can provide these steps, please post them here and re-open the issue.

Closing again. Do not open this issue again, unless you can provide the information requested above.

monen’s picture

Repeating the error from a fresh Drupal installation
All needed steps to reproduce the WSOD error are described below:

Environment:
OSX 10.8.5
Apache/2.2.24 (Unix) DAV/2 PHP/5.3.26 mod_ssl/2.2.24 OpenSSL/0.9.8y
MySQL 5.5.24

Preliminary steps:
1. create in mysql database ideal_db with user ideal pwd ideal

  mysql> create database ideal_db;
   Query OK, 1 row affected (0.00 sec)
  mysql> GRANT ALL PRIVILEGES ON ideal_db.* TO 'ideal'@'localhost' IDENTIFIED BY 'ideal' WITH GRANT OPTION;
   Query OK, 0 rows affected (0.01 sec)

2. in apache create vhost for ideal.local:

<VirtualHost *:80>
    ServerAdmin henk@mydomain.nl
    DocumentRoot "/Volumes/System/Users/monen/projecten/drupal-7/ideal.local"
    ServerName ideal.local
    ServerAlias ideal.local
    <Directory "/Volumes/System/Users/monen/projecten/drupal-7/ideal.local">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride All
        Order allow,deny
        Allow from all
    </Directory>
    ErrorLog "/private/var/log/apache2/ideal.local-error_log"
    CustomLog "/private/var/log/apache2/ideal.local-access_log" common
</VirtualHost>

4. add line in /etc/hosts:
127.0.0.1 ideal.local

5. restart apache:

apachectl restart

Installation of Drupal and modules:
1. download drupal-7.24.tar.gz, unpack in proper test directory: ideal.local
2. copy drupal-7.23.nl.po in profiles/standard/translations
3. open browser and go to address: ideal.local
4. follow the instructions drupal gives
Choose for installation profile: Standard
Choose language: Dutch
Database-instellingen: fill in database credentials (ideal_db ideal ideal) press "opslaan en doorgaan"
Page: "Website instellen"
Naam van de website: ideal.local
Website-e-mailadres: henk@stuurnaarhier.nl
Gebruikersnaam: admin
E-mailadres: admin@stuurnaarhier.nl
Wachtwoord: *******
Wachtwoord bevestigen: *******
Standaardland: Nederland
Standaardtijdzone: Europe/Amsterdam
Block: "Update-meldingen" keep both options checked
Press "opslaan en doorgaan"
results in successfull installation: page "Drupal-installatie voltooid"

5. Installation of modules needed for shopping in sites/all/modules/contrib:
entity-7.x-1.2
rules-7.x-2.6
views-7.x-3.7
ctools-7.x-1.3

ubercart-7.x-3.5
ideal-7.x-2.6
idealubercart-7.x-1.3

copy ubercart-7.x-3.5.po to profiles/standard/translations

6. Open browser and go to address: ideal.local, login as admin and go to modules
7. Check iDEAL For Ubercart (7x-1.3) and press the button at the bottom of the page: "Instellingen opslaan"
You wil get a page with remark: "Enkele vereiste modules moeten worden ingeschakeld" press "Doorgaan"
8. Go to store -> Payment methods (admin/store/settings/payment)
This will result in a "white screen of death" (WSOD)"
Add these lines in the root index.php, just next the opening php tag:

     error_reporting(E_ALL);
     ini_set('display_errors', TRUE);
     ini_set('display_startup_errors', TRUE);
     // $Id: index.php,v 1.94 2007/12/26...

Once again go to store -> Payment methods (admin/store/settings/payment)
You get an error message:
Fatal error: Call to undefined function idealubercart_callback() in /Volumes/System/Users/monen/projecten/drupal-7/ideal.local/sites/all/modules/contrib/ubercart/payment/uc_payment/uc_payment.admin.inc on line 46

9. Go to modules, in Ubercart - payment:
uncheck iDEAL For Ubercart
check Test gateway
press at the bottom of the page the button "Instellingen opslaan"
Once again you will get a page with remark: "Enkele vereiste modules moeten worden ingeschakeld" press "Doorgaan"
10.Go to Credit card settings (admin/store/settings/payment/method/credit)
choose tab "Security settings" and fill in "../keys" for encryption key directory
press "instellingen opslaan" at the bottom of the page

11.Go to store -> Payment methods (admin/store/settings/payment)
Now you will see the activated payment methods.

12.Go to modules, in Ubercart - payment:
check iDEAL For Ubercart
check Test gateway
press at the bottom of the page the button "Instellingen opslaan"

13.Go to store -> Payment methods (admin/store/settings/payment)
This will result in a "white screen of death" (WSOD)"
You get an error message:
Fatal error: Call to undefined function idealubercart_callback() in /Volumes/System/Users/monen/projecten/drupal-7/ideal.local/sites/all/modules/contrib/ubercart/payment/uc_payment/uc_payment.admin.inc on line 46

I hope that with this information you will able to reproduce the error, and more important to solve it.

Kind regards,
Henk Monen

monen’s picture

Status: Closed (cannot reproduce) » Active
xano’s picture

Status: Active » Needs review
StatusFileSize
new464 bytes

Thanks for the extremely useful instructions, @monen!

This looks like a piece of leftover code from a past refactoring. Can you confirm if this patch solves your problems?

monen’s picture

Thanks for the patch @Xano, but alas!

I applied the patch (which resulted in deleting in line 32 in idealubercart.module as far as I can see) and retried:

1. Go to Store -> Payment methods (admin/store/settings/payment)
This will again result in a "white screen of death" (WSOD)"
Now I get another error message:
Fatal error: Function name must be a string in sites/all/modules/contrib/ubercart/payment/uc_payment/uc_payment.admin.inc on line 46
2. Navigate one step back, a warning shows up in the Store page:
Notice: Undefined index: callback in uc_payment_methods_form() (regel 46 van sites/all/modules/contrib/ubercart/payment/uc_payment/uc_payment.admin.inc).

For the time being I have added an empty function in the idealubercart.module:

function idealubercart_callback($op, &$order, array $form = NULL, array &$form_state = NULL) {
}

This is the same empty function which disappeared in version 1.2

With this function everything seems to work fine.

kind regards,
Henk Monen

monen’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +failed
monen’s picture

Status: Reviewed & tested by the community » Needs review
monen’s picture

Status: Needs review » Needs work
xano’s picture

Status: Needs work » Needs review
StatusFileSize
new623 bytes

Here is a patch based on #12.

monen’s picture

Patch works ok.
With the patch payment method iDeal appears in the payment methods list.

Thanks for the adjustment,
Henk Monen

monen’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -failed

the patch solves the issue

xano’s picture

Version: 7.x-1.2 » 7.x-1.x-dev
Component: User interface » Code
Status: Reviewed & tested by the community » Fixed

Thanks for the feedback! I committed the fix.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.