Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)
  • Thread Starter speessie

    (@speessie)

    Solved.

    So what I did:
    1) Disabled the phpmailer code in wp-config.php (no errors).
    2) Rename the WP-Mail plugin (no errors).

    Thank you for you respons and I hope that others can solve this problem themselves. I did ask the Host (TransIP) to fix this issue as they are the ones who added the code in the first place. Not only in my wp-config.php but all of their customers. So I believe they should remove it everywhere.

    Best,
    Bas

    Thread Starter speessie

    (@speessie)

    Hello Gregor,
    After posting this I did some research: seems that my host added some code after the “stop editing” line in wp-config:

    /** HOST fix: sendmail does not support flags. This fix is needed in order to make mailing work. */
    global $phpmailer;
    if ((!is_object( $phpmailer ) || !is_a( $phpmailer, 'PHPMailer' )) &&
         file_exists(ABSPATH . '/wp-includes/class-phpmailer.php') &&
         file_exists(ABSPATH . '/wp-includes/class-smtp.php')) {
    	require_once ABSPATH . '/wp-includes/class-phpmailer.php';
    	require_once ABSPATH . '/wp-includes/class-smtp.php';
    	$phpmailer = new PHPMailer( true );
    }
    $phpmailer->UseSendmailOptions = false;

    I will set this through to them and let you know. However, that does leave the few lines:

    [24-May-2021 12:29:51 UTC] PHP Fatal error:  Uncaught TypeError: Argument 1 passed to WPMailSMTP\Providers\MailerAbstract::__construct() must implement interface WPMailSMTP\MailCatcherInterface, instance of PHPMailer\PHPMailer\PHPMailer given, called in /www/wp-content/plugins/wp-mail-smtp/src/Providers/Loader.php on line 195 and defined in /www/wp-content/plugins/wp-mail-smtp/src/Providers/MailerAbstract.php:103
    Stack trace:
    #0 /www/wp-content/plugins/wp-mail-smtp/src/Providers/Loader.php(195): WPMailSMTP\Providers\MailerAbstract->__construct(Object(PHPMailer\PHPMailer\PHPMailer))
    #1 /www/wp-content/plugins/wp-mail-smtp/src/Providers/Loader.php(151): WPMailSMTP\Providers\Loader->get_entity('smtp', 'Mailer')
    #2 /www/wp-content/plugins/wp-mail-smtp/src/Admin/Review.php(106): WPMailSMTP\Providers\Loader->get_mailer('smtp', Object(PHPMailer\PHPMailer\PHPMailer))
    #3 /www/wp-content/plugins/wp-mail-smtp/src/Admin/Review.php(78): WPMailSMTP\Admin\Review->review()
    #4 /www/wp-includes/class-wp-hook.php(292): WPMailSMTP\Admin\Review->review_request('')
    #5 /www/w in /www/wp-content/plugins/wp-mail-smtp/src/Providers/MailerAbstract.php on line 103

    Best,
    Bas

    Thread Starter speessie

    (@speessie)

    Hello Gregor,

    This is the result:

    [24-May-2021 12:29:35 UTC] PHP Deprecated:  class-phpmailer.php is <strong>verouderd</strong> sinds versie 5.5.0. Gebruik in plaats daarvan wp-includes/PHPMailer/PHPMailer.php. The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /www/wp-includes/functions.php on line 5051
    [24-May-2021 12:29:35 UTC] PHP Deprecated:  class-smtp.php is <strong>verouderd</strong> sinds versie 5.5.0. Gebruik in plaats daarvan wp-includes/PHPMailer/SMTP.php. The SMTP class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /www/wp-includes/functions.php on line 5051
    [24-May-2021 12:29:36 UTC] PHP Deprecated:  class-phpmailer.php is <strong>verouderd</strong> sinds versie 5.5.0. Gebruik in plaats daarvan wp-includes/PHPMailer/PHPMailer.php. The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /www/wp-includes/functions.php on line 5051
    [24-May-2021 12:29:36 UTC] PHP Deprecated:  class-smtp.php is <strong>verouderd</strong> sinds versie 5.5.0. Gebruik in plaats daarvan wp-includes/PHPMailer/SMTP.php. The SMTP class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /www/wp-includes/functions.php on line 5051
    [24-May-2021 12:29:36 UTC] PHP Deprecated:  class-phpmailer.php is <strong>verouderd</strong> sinds versie 5.5.0. Gebruik in plaats daarvan wp-includes/PHPMailer/PHPMailer.php. The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /www/wp-includes/functions.php on line 5051
    [24-May-2021 12:29:36 UTC] PHP Deprecated:  class-smtp.php is <strong>verouderd</strong> sinds versie 5.5.0. Gebruik in plaats daarvan wp-includes/PHPMailer/SMTP.php. The SMTP class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /www/wp-includes/functions.php on line 5051
    [24-May-2021 12:29:51 UTC] PHP Fatal error:  Uncaught TypeError: Argument 1 passed to WPMailSMTP\Providers\MailerAbstract::__construct() must implement interface WPMailSMTP\MailCatcherInterface, instance of PHPMailer\PHPMailer\PHPMailer given, called in /www/wp-content/plugins/wp-mail-smtp/src/Providers/Loader.php on line 195 and defined in /www/wp-content/plugins/wp-mail-smtp/src/Providers/MailerAbstract.php:103
    Stack trace:
    #0 /www/wp-content/plugins/wp-mail-smtp/src/Providers/Loader.php(195): WPMailSMTP\Providers\MailerAbstract->__construct(Object(PHPMailer\PHPMailer\PHPMailer))
    #1 /www/wp-content/plugins/wp-mail-smtp/src/Providers/Loader.php(151): WPMailSMTP\Providers\Loader->get_entity('smtp', 'Mailer')
    #2 /www/wp-content/plugins/wp-mail-smtp/src/Admin/Review.php(106): WPMailSMTP\Providers\Loader->get_mailer('smtp', Object(PHPMailer\PHPMailer\PHPMailer))
    #3 /www/wp-content/plugins/wp-mail-smtp/src/Admin/Review.php(78): WPMailSMTP\Admin\Review->review()
    #4 /www/wp-includes/class-wp-hook.php(292): WPMailSMTP\Admin\Review->review_request('')
    #5 /www/w in /www/wp-content/plugins/wp-mail-smtp/src/Providers/MailerAbstract.php on line 103
    [24-May-2021 12:29:52 UTC] PHP Deprecated:  class-phpmailer.php is <strong>verouderd</strong> sinds versie 5.5.0. Gebruik in plaats daarvan wp-includes/PHPMailer/PHPMailer.php. The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /www/wp-includes/functions.php on line 5051
    [24-May-2021 12:29:52 UTC] PHP Deprecated:  class-smtp.php is <strong>verouderd</strong> sinds versie 5.5.0. Gebruik in plaats daarvan wp-includes/PHPMailer/SMTP.php. The SMTP class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /www/wp-includes/functions.php on line 5051
    [24-May-2021 12:29:52 UTC] PHP Deprecated:  class-phpmailer.php is <strong>verouderd</strong> sinds versie 5.5.0. Gebruik in plaats daarvan wp-includes/PHPMailer/PHPMailer.php. The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /www/wp-includes/functions.php on line 5051
    [24-May-2021 12:29:52 UTC] PHP Deprecated:  class-smtp.php is <strong>verouderd</strong> sinds versie 5.5.0. Gebruik in plaats daarvan wp-includes/PHPMailer/SMTP.php. The SMTP class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /www/wp-includes/functions.php on line 5051
    [24-May-2021 12:29:52 UTC] PHP Deprecated:  class-phpmailer.php is <strong>verouderd</strong> sinds versie 5.5.0. Gebruik in plaats daarvan wp-includes/PHPMailer/PHPMailer.php. The PHPMailer class has been moved to wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /www/wp-includes/functions.php on line 5051
    [24-May-2021 12:29:52 UTC] PHP Deprecated:  class-smtp.php is <strong>verouderd</strong> sinds versie 5.5.0. Gebruik in plaats daarvan wp-includes/PHPMailer/SMTP.php. The SMTP class has been moved to the wp-includes/PHPMailer subdirectory and now uses the PHPMailer\PHPMailer namespace. in /www/wp-includes/functions.php on line 5051

    Some error with PHPmailer I guess?

    Thread Starter speessie

    (@speessie)

    Hello Gregor,

    This is literally what I get:

    Er heeft zich een kritieke fout voorgedaan op deze site. Controleer je site beheerder e-mail inbox voor instructies.
    
    Meer informatie over probleemoplossing in WordPress.

    Didn’t receive the e-mail though…

    Best,
    Bas

    • This reply was modified 3 years, 9 months ago by speessie.
    Thread Starter speessie

    (@speessie)

    That’s a fast one Jan!

    To answer your questions one by one:
    1. Where is WordPress installed on the file system? It looks like you may have in a subdirectory /winkel/ but the post redirects to the root.
    1) it is in root/winkel.
    2. Does /winkel/ exist as an actual subdirectory?
    2) It actually exists as a subdirectory (created it myself).
    3. When I visited https://www.superpersis.nl/winkel/wp-admin/ I was greeted with an interesting login prompt. Where's that coming from? If it is server based then there may be more going on here.
    3) If you are referring to the WordPress attack protection; I was under the impression it came with WordPress? It is for sure server based. As WordPress was under attack quite often by hackers who used “Admin” and some random passwords to hack a site I could imagine that a registrar would like to rule out hacker software. It happened to me at my previous host btw, cost me quite some time…
    4. What do you have in your WordPress SiteURL and WordPress Address? I think it's these two values
    4) You are absolutely right about the two values.

    So what does this tell us?

    P.s. Winkel = Dutch for shop.

    Thread Starter speessie

    (@speessie)

    Hiya Jan,

    Currently the .htaccess in the subfolder of jthosting.nl looks like this:

    # Block the wp-config file.
    <files wp-config.php>
    order allow,deny
    deny from all
    </files>
    
    # Block the include-only files.
    RewriteEngine On
    RewriteBase /
    RewriteRule ^wp-admin/includes/ - [F,L]
    RewriteRule !^wp-includes/ - [S=3]
    RewriteRule ^wp-includes/[^/]+\.php$ - [F,L]
    RewriteRule ^wp-includes/js/tinymce/langs/.+\.php - [F,L]
    RewriteRule ^wp-includes/theme-compat/ - [F,L]
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    And in the root like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    The root .htaccess file of Superpersis.nl currently looks like this because of the standard option for permalinks: /?p=123 or something like that.

    # BEGIN WordPress
    
    # END WordPress

    The subfolder .htaccess looks like this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /winkel/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /winkel/index.php [L]
    </IfModule>
    
    # END WordPress

    The Apache2 config file is on the same (shared) server and I could not find but I ask my registrar if ModRewrite is on and he confirmed this. Should I also ask him about the content of the config file?

    Thread Starter speessie

    (@speessie)

    Thank you for your reply Jan, I appreciate that!

    Your reply made me reconsider my words after first being really annoyed that you said it didn’t happen with a clean install, which it did. I wanted to proof you wrong (read: proof me right) and installed WP 4.4 in a sub folder of one of my websites. After entering the DB information etc. the installation didn’t progress. So I checked with FileZilla to edit the config file. It was correct. I checked the original WP install and it was identical to the new install. It scared the sh*t out of me as I lost my website! So I restored a backup and all was well. That’s when it hit me: you were right! It’s not the regular install which shows this error, it’s an install in a sub folder.

    There for I thank you for taking me/us a step closer to a solution. The problem still occurs though.

    Why are pretty permalinks not working when WP is installed in a sub folder?

    Thread Starter speessie

    (@speessie)

    In the end I had to change everything by hand.

    I’m disappointed that there’s no real reply to this thread and thus to the problem.

    Thread Starter speessie

    (@speessie)

    jthosting.nl

    Don’t see why this would be helpfull though as you would just see the standard theme layout.

    But if you have an answer, let me know! ??

    Any idea on the progress for this issue?

    Obviously it’s hidden on the website but check: https://www.jtgroep.nl/category/betaald. You should see the posts but are unable to view the content after selecting the post. I can relate to Ralph as I try to show posts via category to a specific user only. The post is restricted and so should the post shown by category.

    Looking forward to the solution!

    Bas

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