WordPress.org

Ready to get started?Download WordPress

Forums

[Plugin: eShop] Admin area problems (4 posts)

  1. TradingMetro
    Member
    Posted 5 years ago #

    When I click on the "Downloads" or "Discount Codes" pages in the admin area, I have errors stemming from the fact that I am using a customized "wp-content" directory.

    FYI, my custom "wp-content" directory is called "content".

    Here is an example error:
    Warning: include_once(W:\www/wp-content/plugins/eshop/cart-functions.php) [function.include-once]: failed to open stream: No such file or directory in W:\www\content\plugins\eshop\eshop_discount_codes.php on line 18

    Can anybody help?

  2. TradingMetro
    Member
    Posted 5 years ago #

    Okay I fixed my own problem!

    Edit "cart_functions.php"

    Do a find and replace for ABSPATH.PLUGINDIR and replace with WP_PLUGIN_DIR.

    Hope that helps someone!

    Now time to play with this plugin.

    At first glance, the code is very clean, unlike that other plugin - WP e-Commerce.

  3. TradingMetro
    Member
    Posted 5 years ago #

    You'd also want to do the same fix above for "eshop_discount_codes.php" and "checkout.php".

    Will update this thread accordingly if I find other similar problems.

  4. elfin
    Moderator
    Posted 5 years ago #

    well caught! I'll make the changes for the next release - thanks.

    I'll go through all files as well - but if you find more, please let me know.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags