Modern Events Calendar - Coupons

Hi, I am hoping you can help…

If I set up a coupon in ME Calendar for £45 and the user redeems it against a £25 event, how do I handle the £20 credit?

As far as I can see, there is no message or warning that the full amount has not been spent.

I am looking ideally for a credit note (coupon) to be automatically generated or failing that, at least a back end notification that there has been an overspend, so that a credit note (coupon) can be generated

Thanks

Scot

Hey Scot,

I reviewed MEC’s features and there’s no solution yet to prevent that issue except setting a percentage discount type.

I’ll post your concern to our issue tracker so our development team could forward it to Webnus.

Thanks.

Thank you Christian,

I would be very interested in their response.

to give context, my client sells gift vouchers for her events to be redeemed against an event of their choosing

Also, when booking an event (in my test case via a coupon) the download invoice option gives the following option
“FPDF error: Image file has no extension and no type was specified:”

Do you know the cause/solution please?

Hi there,

It’s a common issue when the PDF or image files are invalid. An example is it creates a temporary file for processing and it fails to write to TEMP folder of your site, so in the final processing, the temporary file is pulled but invalid and triggers that error. I recommend contacting your hosting provider about this too to get further information about the error.

It just can’t get the information of the PDF/Image since it’s not readable, and it’s not readable since it could be the non-existing file.

Thanks!

Thank you @Rad,

I’ll get onto hosting support and see what they say

Hi,

I have spoken to my hosting support (Cloudways) and they have double checked my privs and all looks ok

I have also found this > https://stackoverflow.com/questions/18310563/fpdf-error-image-file-has-no-extension-and-no-type-was-specified

I would really appreciate some help on this matter, as the site is due to go live this week

Hi there,

I tried to test the case using the URL which you provided but unfortuntely I get this error:

Would you please give us the steps we should take to book an event and use the Coupon to see the error? Give us the correct URL, please.

Also, give us the URL/User/Pass of your WordPress Dashboard using the Secure Note so that we can check the case from backend too.

Finally, I searched for the same cases in our forum and found the same case:

In that case also the problem seemed to be the hosting service provider.

Thank you.

I will add the details below

Hi there,

Thank you for the detailed information. I double checked the case and found out that the download link is actually a PHP function which generates the PDF file. That function needs the GD library of PHP to work correctly so the Hosting Service Provider is a factor. I installed the WP-ServerInfo plugin and if you go to Dashboard > WP-ServerInfo you can see details. It seems that your server does have the GD library installed. I am not sure what else might be needed but that can be a factor.

The other point is the version of the Modern Event Calendar which we have bundled to the theme and it is version 2.2.6. I checked their Changelog and it seems there is a section which they fixed the PDF invoice problem in version 2.3.0:

https://codecanyon.net/item/modern-events-calendar-responsive-event-scheduler-booking-for-wordpress/17731780

That can be another factor which for now we can not be of a help as we did not test the new versions of the plugin with our theme yet to be able to release the new version. But I see that you do have a license for that plugin right? If that is the case you can have a backup of your website and update the plugin and see if it fixes the issue.

If that is the case then we will be in contact with our development team to make sure we will release the new version as soon as possible.

Thank you.

I have not purchased Modern Event Calendar, and only using the Pro Theme validated version. Having said that, I just successfully updated to Version 2.5.0 (no idea how that succeeded!)

I have recreated the problem and again I get a problem, but this time… a different problem

“Can’t open file C:\xampp\htdocs\mec\wp-content\plugins\modern-events-calendar\app\api\TFPDF/font/unifont/DejaVuSansCondensed.ttf”

Which seems an odd one as it refers to a local drive (not to mention I run a mac that doesn’t have a C: drive)

Any ideas?

Hey There,

Looks like your installation is for some reason requesting that font face from a local environment which could be a bug the plugin author caused. I will reach out to them so they can fix this in a future release, for now this should not have any impact on the functionality as it’s just a font face which will revert to a backup font most likely open sans or any other body font you’ve defined.

Hi Rubin,

it does impact functionality as instead of showing the invoice, it shows the error message
“Can’t open file C:\xampp\htdocs\mec\wp-content\plugins\modern-events-calendar\app\api\TFPDF/font/unifont/DejaVuSansCondensed.ttf”
as mentioned above.

Thank you for passing this on the the plugin author though and I hope they resolve this quickly

A patch update should be available once they have fixed the issue.
Thank you for understanding.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.