1. colcam
  2. RO Payments
  3. Monday, 23 September 2019
  4.  Subscribe via email
During setup and testing of RO Payment (actually its predecessor JD-Ideal) i created all 6 possible emails to verify and follow the payment process.
It's now time to switch some of these off.
While trying to delete these emails I get the error message shown below.
The email is not deleted.
Have I done something wrong or did I hit a bug?

Thanks,
André

Error msg.:
An error has occurred.
0 Call to undefined method JdidealgatewayModelJdidealgateway::delete()
Attachments (1)
Accepted Answer Pending Moderation
Hello André,

Thank you for your message, I am afraid you have hit a bug. The solution is luckily not so difficult, here are the steps you can follow to fix this or you can wait for the next release.


  1. Go to the folder administrator/components/com_jdidealgateway/controllers
  2. Edit the file messages.php
  3. Add the following code after line 22

  4. /**
    * Method to get a model object, loading it if required.
    *
    * @param string $name The model name. Optional.
    * @param string $prefix The class prefix. Optional.
    * @param array $config Configuration array for model. Optional.
    *
    * @return \JModelLegacy|boolean Model object on success; otherwise false on failure.
    *
    * @since 5.0.0
    */
    public function getModel($name = 'Message', $prefix = 'JdidealgatewayModel', $config = array())
    {
    return parent::getModel($name, $prefix, $config);
    }

  5. Save the file
  6. You can now delete messages
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO Payments
  3. # 1
Accepted Answer Pending Moderation
Sorry Roland,
It was not so easy after all :o

The fix initially did not seem to work.

I had another good look.... I'm trying to delete mails and not messages.
After applying your fix I was now able to delete messages, so that is won.
Next I copied your code into the 'emails.php' controller, changed the model name to 'Email' and now it does work :D
I leave it to you and your excellent team to find out if other items are similarly affected.
For now I'm grateful, my problem is solved.

Cheers,
André
  1. more than a month ago
  2. RO Payments
  3. # 2
Accepted Answer Pending Moderation
Hello André,

Thank you for your input. I have fixed all cases now and this will be included in the next release.
Kind regards,

RolandD

=========================
If you use our extensions, please post a rating and a review at the Joomla! Extension Directory
  1. more than a month ago
  2. RO Payments
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!