DukaPress “Parse Error”


We’ve been experiencing a really weird error where if you install or upgrade DukaPress via FTP it seems to break the whole site and gives an error like this one:

Parse error: syntax error, unexpected T_IF in /home/duka1/public_html/demo2/wp-content/plugins/dukapress/php/dp-payment.php on line 1

The problem seems to be that as the FTP client uploads dp-payment.php, it corrupts that file.

The problem comes about because the FTP client is using the ASCII transfer type. This sometimes causes files to be corrupted.

Possible solutions:

  1. Change your FTP transfer type to “Binary” and re-upload
  2. Upload your plugin via a method other than FTP (The WordPress internal installer works GREAT)

Another solution: you need to find a way to replace the broken dp-payment.php with a copy that works. This can be done easily via “File Manager” type of programs on your server or via the WordPress plugins editor.

Hint: If this happens, you can quickly “restore” your website by renaming the DukaPress folder on your server. This disables the DukaPress plugin without forcing you to delete it from your server.

4 Responses

  1. Jeff Hardy says:

    Can anyone help with this error. Happens when a product is purchased. The order goes through but it is not telling me preferences etc. Color,size

    Warning: Invalid argument supplied for foreach() in /home/cjplay/public_html/wp-content/plugins/dukapress/dukapress.php on line 511

  2. Nice Share. i wanted to add your this post on my blog as i run my own blog to promote the same idea,i’m hiding it from other blog readers. hope we will keep connected in future.

  3. Warning: Invalid argument supplied for foreach() in /home/content/16/8798916/html/wp-content/plugins/dukapress/php/dp-cart.php on line 1492

    I receive this error on the Thank You Page.. and also during checkout, when one selects Country for the drop down list, the page scrolls to the top instantly. Its quite annoying. Please help me in this regard.

Leave a Reply

© 2018 DukaPress. All rights reserved.
Design By Madoido.