• Resolved blacksunclothing

    (@blacksunclothing)


    Hi,

    I’m trying to add my Spreadshirt shop but I keep getting the 500 (Internal Server) Error. The webpage with the error is: http://blacksun-clothing.com/wp/?page_id=190

    I have two shops on Spreadshirt. The one I’m trying to add has 95 products and will probably expand to 200 products within the next few months (http://blacksun-clothing.spreadshirt.com).

    I’m using the WP-Spreadplugin plugin version 3.5.5.3 and WordPress version is 3.8.2.

    My website is currently hosted on a Windows platform on GoDaddy (As far as I know, I cannot enabled IIS Log since it’s a shared instance). I’m new to WordPress.

    I have populated most of the fields from the settings/Spreadplugin Options. Both shortcodes (minimum and extended) throws the exception.

    My setting is:
    – Shop id: <6 digits>
    – Shop country: Canada (English) (by the way, I don’t see this setting in the extended shortcode)
    – Shop source: US/Canada
    Spreadshirt API Key: <36 characters> (from https://www.spreadshirt.com/-C6840)
    Spreadshirt API Secret: <36 characters> (from https://www.spreadshirt.com/-C6840)
    Limit articles per page: 10
    Imagine size: 280
    Product category: All products
    Article category: empty
    Social buttons: disabled
    Product linking: enabled
    Sort articles by: recent
    Target of links: empty
    Use iframe for checkout: opens in separate window
    Designer Shop ID: empty
    Default display: articles
    Designs with background: enabled
    Always show article description: enabled
    Show product description under article description: enabled
    Display price without and with tax: enabled
    Zoom image background color: #FFFFFF
    View: Grid View
    Infinity scrolling: Enabled
    Lazy load: Enabled
    Zoom type: Inner
    Custom CSS: Empty

    With all this information, what would you recommend me to do?

    https://ww.wp.xz.cn/plugins/wp-spreadplugin/

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter blacksunclothing

    (@blacksunclothing)

    I have turned-on the logs in WordPress and came up with the following information.

    [10-Apr-2014 15:11:21] PHP Notice: Undefined index: pagesp in D:\Hosting\3066907\html\wp\wp-content\plugins\wp-spreadplugin\spreadplugin.php on line 195
    [10-Apr-2014 15:11:22] PHP Notice: Trying to get property of non-object in D:\Hosting\3066907\html\wp\wp-content\plugins\wp-spreadplugin\spreadplugin.php on line 486
    [10-Apr-2014 15:11:22] PHP Notice: Trying to get property of non-object in D:\Hosting\3066907\html\wp\wp-content\plugins\wp-spreadplugin\spreadplugin.php on line 497

    I got this information by modifying the wp-config.php file.
    define(‘WP_DEBUG’, true);
    define(‘WP_DEBUG_LOG’, true);
    define(‘WP_DEBUG_DISPLAY’, true);

    The information was then logged in wp-content/debug.log

    Plugin Author Thimo Grauerholz

    (@pr3ss-play)

    Hi,

    please check the server logs directly. The WordPress logs are just showing notices which are not causing a 500.

    Common problems are missing curl, small RLimit,…

    Cheers
    Thimo

    Thread Starter blacksunclothing

    (@blacksunclothing)

    Fatal error: Uncaught exception ‘Exception’ with message ‘String could not be parsed as XML’ in D:\Hosting\3066907\html\wp\wp-content\plugins\wp-spreadplugin\spreadplugin.php:542 Stack trace: #0 D:\Hosting\3066907\html\wp\wp-content\plugins\wp-spreadplugin\spreadplugin.php(542): SimpleXMLElement->__construct(”) #1 D:\Hosting\3066907\html\wp\wp-content\plugins\wp-spreadplugin\spreadplugin.php(201): WP_Spreadplugin::getArticleData() #2 [internal function]: WP_Spreadplugin->Spreadplugin(”, ”, ‘spreadplugin’) #3 D:\Hosting\3066907\html\wp\wp-includes\shortcodes.php(273): call_user_func(Array, ”, ”, ‘spreadplugin’) #4 [internal function]: do_shortcode_tag(Array) #5 D:\Hosting\3066907\html\wp\wp-includes\shortcodes.php(188): preg_replace_callback(‘/\[(\[?)(embed|…’, ‘do_shortcode_ta…’, ‘[spreadplugin]?’) #6 [internal function]: do_shortcode(‘[spreadplugin]?’) #7 D:\Hosting\3066907\html\wp\wp-includes\plugin.php(199): call_user_func_array(‘do_shortcode’, Array) #8 D:\Hosting\3066907\html\wp\wp-includes\post-template.php in D:\Hosting\3066907\html\wp\wp-content\plugins\wp-spreadplugin\spreadplugin.php on line 542

    Thread Starter blacksunclothing

    (@blacksunclothing)

    I don’t know if it can be useful, but here is a screenshot of my Spreadshirt shop (click here) This exception was thrown with the “blacksun-clothing” shop (467662).

    Plugin Author Thimo Grauerholz

    (@pr3ss-play)

    please try version 3.5.5.4 🙂

    Thread Starter blacksunclothing

    (@blacksunclothing)

    It partially worked. I can now see a more user-friendly error message as “Error getting articles. Please check Shop-ID, API and secret.”.

    I have validated that my shop ID, API and secret are properly set:
    (photo)

    Plugin Author Thimo Grauerholz

    (@pr3ss-play)

    well, now we know that you’re unable to fetch the articles. Your settings seem to be good, but I believe, you aren’t able to fetch the articles from the spreadshirt api because of missing curl or similar.
    Maybe that’s the reason, why it’s not working for you (you’ve got iis and not linux server): http://support.godaddy.com/help/category/435/web-hosting-languages-and-scripts-php-curl

    Maybe you can ask godaddy support to enable curl for your server?

    Sorry for all of the maybes 😉

    Thread Starter blacksunclothing

    (@blacksunclothing)

    Thank you for your help, I’ll keep you updated.

    Thread Starter blacksunclothing

    (@blacksunclothing)

    I moved my site from a Windows platform to a Linux one and I still had the same error message with the plugin 3.5.5.4.

    I created a PHP page to test if CURL was properly enabled and it returned me some data.

    This morning, I saw an update of your plugin (3.5.5.5) and I no longer have the “Error getting articles. Please check Shop-ID, API and secret.” message. However, the page keeps loading and nothing appears.

    Click Here

    Is there any debug parameter that I can turn-on in the shortcode to display some debugging information?

    Plugin Author Thimo Grauerholz

    (@pr3ss-play)

    sorry, i can’t help you without having a look at the log or debug directly.

    Thread Starter blacksunclothing

    (@blacksunclothing)

    Good news, it is now working but I think there is a small bug somewhere in the plugin or in the Spreadshirt API.

    I created a new store in Spreadshirt, copied all products that I had into it. I then modified the Shop ID from the WP-Spreadplugin and cleared Spreadplugin’s cache.

    I refreshed my WordPress webpage that had the minimum shortcode and it worked. The only difference I can see between the two shops is the currency. It’s “$” in the original one that wasn’t working (467662) and “CAD” in the new shop (528852).

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘500 (Internal Server) Error’ is closed to new replies.