- This topic has 4 replies, 2 voices, and was last updated 12 years, 11 months ago by .
Viewing 5 posts - 1 through 5 (of 5 total)
Viewing 5 posts - 1 through 5 (of 5 total)
- You must be logged in to reply to this topic.
Support site for Tips and Tricks HQ premium products
by
Tips and Tricks HQ Support Portal › Forums › WP eMember › WP eMember Troubleshooting › PHP error from Digital Product URL
Tagged: Digital Product URL, eMember, PHP
Hi there,
When a user purchases an item and the digital product URL is clicked, I am presented with a webpage full of PHP errors. The best way I can demonstrate this is to provide the actual download link:
Your help would be much appreciated with this – it’s the last and final thing I need to fix before I can fully use the system.
Many thanks.
Tom
What version of PHP are you using on the server?
PHP 5.3.8
The problem is caused by a change to the way PHP 5.3.x enforces syntax rules. Until the code can be officially updated (in about 12 hours), please make the following edits to the download.php file…
On lines 3 to 21, for each occurrence of…
define(ESTORE_DLVS_WHATEVER, ‘VALUE’);
Change to…
define(‘ESTORE_DLVS_WHATEVER’, ‘VALUE’);
What you are doing is placing the constant name inside single quotes.
Amazing it worked… thank you!!!