Forum Replies Created

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter 000

    (@platonic)

    Yes, sorry, I caught a flu back then and forgot to catch up on all of my work. We didn’t manage to get the plugin working again and where forced to switch to a different plugin.

    Thread Starter 000

    (@platonic)

    I’ve also deactivated all plugins that I can disable without interfering with our website, to no avail.

    Debugging Info:

    WordPress Version: 4.0
    SendPress Version: 1.0
    PHP Version: 5.3.3
    PHP Memory Limit: 256 MByte
    PHP Memory Used: 59.19 MByte
    MySQL Version: 5.1.73

    Database Tables:
    iwk__wp_sendpress_subscribers_event OK
    iwk__wp_sendpress_report_url OK
    iwk__wp_sendpress_subscribers_status OK
    iwk__wp_sendpress_subscribers OK
    iwk__wp_sendpress_list_subscribers OK
    iwk__wp_sendpress_queue OK

    Ports:
    Port 25: verstopft
    Port 465: öffnen
    Port 587: öffnen

    Support Info

    // Generated by the SendPress Plugin //

    Multisite: No

    SITE_URL: http://www.iwk.ac.at
    HOME_URL: http://www.iwk.ac.at

    WordPress Version: 4.0
    Permalink Structure: /archives/%post_id%
    Active Theme: Rocking the Vorstand 0.9.7

    Registered Post Stati: publish, future, draft, pending, private, trash, auto-draft, inherit, sp-standard, sp-custom, sp-form

    Platform: Apple
    Browser Name: Chrome
    Browser Version: 37.0.2062.94
    User Agent String: Mozilla/5.0 (Macintosh; Intel Ma
    c OS X 10_9_4) AppleWebKit/537.3
    6 (KHTML, like Gecko) Chrome/37.
    0.2062.94 Safari/537.36

    SP Version: 1.0

    PHP Version: 5.3.3
    MySQL Version: 5.1.73
    Web Server Info: Apache

    WordPress Memory Limit: 196MB
    PHP Safe Mode: No
    PHP Memory Limit: 256M
    PHP Upload Max Size: 64M
    PHP Post Max Size: 64M
    PHP Upload Max Filesize: 64M
    PHP Time Limit: 60
    PHP Max Input Vars: 1000
    PHP Arg Separator: &
    PHP Allow URL File Open: No

    WP_DEBUG: Enabled

    WP Table Prefix: Length: 8 Status: Acceptable

    Show On Front: page
    Page On Front: Home (#411)
    Page For Posts: Blog (#419)

    WP Remote Post: wp_remote_post() works

    Session: Disabled
    Session Name: PHPSESSID
    Cookie Path: /
    Save Path: /tmp
    Use Cookies: On
    Use Only Cookies: On

    DISPLAY ERRORS: N/A
    FSOCKOPEN: Your server supports fsockopen.
    cURL: Your server supports cURL.
    SOAP Client: Your server has the SOAP Client enabled.
    SUHOSIN: Your server does not have SUHOSIN installed.

    ACTIVE PLUGINS:

    Events Manager: 5.5.3.1
    Facebook: 1.5.5
    Image Widget: 4.1
    Internal Link Widget: 0.1
    Page-list: 4.2
    Remove Link to Current Page: 1.2
    SearchWP: 2.4.4
    SearchWP Boolean Query: 0.2
    SearchWP LIKE Terms: 1.0
    SearchWP Xpdf Integration: 0.6
    SendPress Newsletters: 1.0
    Simple Staff List: 1.15
    WP Publication Archive: 3.0.1
    Zotpress: 5.2.5

    Thread Starter 000

    (@platonic)

    Thanks! I just talked to our provider and they told me that they didn’t do anything that could have solved the issue. That is, the internal server error for the queue comes and goes, even though I’ve ‘increased’ the memory limit to 196 MB (however, this should not have any effect, the WP memory limit, according to http://is.gd/kTPYqi, only applies if PHP’s memory_limit is lower than WP_MEMORY_LIMIT, which in our case it isn’t; PHP’s memory_limit is 256 MB). I’ve also updated WordPress and SendPress.

    What is more, even when the SendPress queue cron URL can be called, that is, responds with some JSON, rather than an internal server error, the queue does not seem to be processed. That is, once we hit “Send E-Mails Now” (or whatever the English label reads), the sending windows opens, closes, and, at http://www.iwk.ac.at/wp-admin/admin.php?page=sp-queue, delivery is displayed, for the relevant e-mails, as being “in process” (see http://imgur.com/avGi0qn). But the e-mails don’t ever get delivered.

    Thanks for taking the time!

    Thread Starter 000

    (@platonic)

    Thanks for the update. I just got news from our hosting provider and they’ve fixed the error, but only momentarily.

    That is, I could call http://www.iwk.ac.at/wp-cron.php?action=sendpress and got some JSON as response. But sending via the queue still doesn’t work. And now, after I’ve tried to send out an e-mail to our test newsletter, I again get “500 – internal server error” when I try to call the cron job. Again with “Premature end of script headers: php-cgi” as explanation in the logs.

    Any ideas?

    Thread Starter 000

    (@platonic)

    What I’ve found in the logs is:

    [Thu Sep 04 10:05:16 2014] [error] [client […]] Premature end of script headers: php-cgi, referer: http://www.iwk.ac.at/wp-admin/admin.php?page=sp-queue
    [Thu Sep 04 10:09:04 2014] [error] [client […]] Premature end of script headers: php-cgi

    That would seem to be a problem either with the PHP setup of my provider or with execution limits. I’ll check again with them.

    That said, I stumbled upon the following notice in my WordPress logs. I haven’t seen this one before (why not is a mystery to me), though it would seem to be benign and unrelated to the issue.

    [04-Sep-2014 09:31:51] PHP Notice: Undefined variable: attempts in […]/wp-content/plugins/sendpress/classes/class-sendpress-queue.php on line 97

    Thread Starter 000

    (@platonic)

    Thanks a lot! I will have a look at this.

    Thread Starter 000

    (@platonic)

    After consulting with our provider, I’ve changed the PHPMailer settings to use their dedicated SMTP server (via the phpmailer_init hook as described here). Again, test mails send, but the queue isn’t processed. However, the settings are correct and this server/port is open and working for sure. Hence, the problem would seem to be with your plugin. Any ideas? Thanks a lot!

    Thread Starter 000

    (@platonic)

    Thanks for the pointers. I didn’t expect debugging information to live under “help” (my fault). So here goes:

    Debugging information

    WordPress Version: 3.9.2
    SendPress Version: 0.9.9.9.9
    PHP Version: 5.3.3
    PHP Memory Limit: 256 MByte
    PHP Memory Used: 62.82 MByte
    MySQL Version: 5.1.73

    Database Tables:
    iwk__wp_sendpress_subscribers_event OK
    iwk__wp_sendpress_report_url OK
    iwk__wp_sendpress_subscribers_status OK
    iwk__wp_sendpress_subscribers OK
    iwk__wp_sendpress_list_subscribers OK
    iwk__wp_sendpress_queue OK

    Ports:
    Port 25: blocked
    Port 465: open
    Port 587: open

    Support information

    // Generated by the SendPress Plugin //

    Multisite: No

    SITE_URL: http://www.iwk.ac.at
    HOME_URL: http://www.iwk.ac.at

    WordPress Version: 3.9.2
    Permalink Structure: /archives/%post_id%
    Active Theme: Rocking the Vorstand 0.9.7

    Registered Post Stati: publish, future, draft, pending, private, trash, auto-draft, inherit, sp-standard, sp-custom, sp-form

    Platform: Apple
    Browser Name: Chrome
    Browser Version: 37.0.2062.94
    User Agent String: Mozilla/5.0 (Macintosh; Intel Ma
    c OS X 10_9_4) AppleWebKit/537.3
    6 (KHTML, like Gecko) Chrome/37.
    0.2062.94 Safari/537.36

    SP Version: 0.9.9.9.9

    PHP Version: 5.3.3
    MySQL Version: 5.1.73
    Web Server Info: Apache

    WordPress Memory Limit: 40MB
    PHP Safe Mode: No
    PHP Memory Limit: 256M
    PHP Upload Max Size: 64M
    PHP Post Max Size: 64M
    PHP Upload Max Filesize: 64M
    PHP Time Limit: 60
    PHP Max Input Vars: 1000
    PHP Arg Separator: &
    PHP Allow URL File Open: No

    WP_DEBUG: Enabled

    WP Table Prefix: Length: 8 Status: Acceptable

    Show On Front: page
    Page On Front: Home (#411)
    Page For Posts: Blog (#419)

    WP Remote Post: wp_remote_post() works

    Session: Disabled
    Session Name: PHPSESSID
    Cookie Path: /
    Save Path: /tmp
    Use Cookies: On
    Use Only Cookies: On

    DISPLAY ERRORS: N/A
    FSOCKOPEN: Your server supports fsockopen.
    cURL: Your server supports cURL.
    SOAP Client: Your server has the SOAP Client enabled.
    SUHOSIN: Your server does not have SUHOSIN installed.

    ACTIVE PLUGINS:

    Acunetix WP Security: 4.0.3
    Advanced Page Manager: 1.3
    BackUpWordPress: 2.6.2
    Events Manager: 5.5.3.1
    Facebook: 1.5.5
    Image Widget: 4.1
    Internal Link Widget: 0.1
    Page-list: 4.2
    Remove Link to Current Page: 1.2
    SearchWP: 2.4.3
    SearchWP Boolean Query: 0.2
    SearchWP LIKE Terms: 1.0
    SearchWP Xpdf Integration: 0.6
    SendPress Newsletters: 0.9.9.9.9
    Simple Staff List: 1.15
    Use Google Libraries: 1.5.2
    WP Mailto Links – Manage Email Links: 1.3.2
    WP Publication Archive: 3.0.1
    Zotpress: 5.2.4

    If I read that correctly, then port 25 on localhost is unavailable. However, the other SMTP ports are open, is there a way to tell SendPress to use these instead?

    We may consider moving to SendPress Pro/Mandrill if we have to, but for know we would rather not complicate our privacy policy even further by adding another company with which we share data.

    Thanks a lot for your help!

    I don’t think there is a good solution for that problem. From what you write, I assume that you want WordPress to load the plugin, so that you do not need to require it. But what speaks against require?

    I use something along these lines in such cases, assuming that I use myplugin located at myplugin/myplugin.php in WordPress’ plugins directory:

    // Just to save me some typing.
    define( __NAMESPACE__ . '\\MYPLUGIN', '/myplugin/myplugin.php' );
    
    require ( file_exists( WPMU_PLUGIN_DIR . MYPLUGIN ) ) ? WPMU_PLUGIN_DIR . MYPLUGIN : WP_PLUGIN_DIR . MYPLUGIN;

    To me, this has the additional benefit that the plugin only needs to be installed, it doesn’t need to be activated.

    Am I missing something?

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