Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter steigerdaniel

    (@steigerdaniel)

    Since there is nothing that annoys me more than this kind of discussions without conclusion:

    I once again re-installed wordpress and made it step by step.
    So the issue in the end was this little piece

    if (strpos($_SERVER['HTTP_X_FORWARDED_PROTO'], 'https') !== false)
       $_SERVER['HTTPS']='on';
    else
       $_SERVER['HTTPS']='off';

    I added this one in my wp-config.php file, since I got an redirect error.
    After I added this one I was able to access my homepage, however again I got the “you do not have sufficient permissions to access this page” message again. The resolution is as simple as it can be:

    IT HAS TO BE ADDED AT THE REALLY BEGINNING OF THE wp-config.php. Hope I this helps others as well.

    Thread Starter steigerdaniel

    (@steigerdaniel)

    I see your points and I do agree.
    I am acctually also agreeing with you, that I don’t really think, upgrading the PHP version is going to solve my problem, however I don’t really see a reason why not upgrading it, since a) wordpress does require it and b) I then can be certrain, it wasn’t caused by that.
    Nonetheless I would be surprised if it is not going to be an issue with the DB (or a value set within the DB), since the code mentioned in the first comment

    function codelight_all_permissions( $allcaps, $cap, $args ) {
        $allcaps[$cap[0]] = true;
        return $allcaps;
    }
    add_filter( 'user_has_cap', 'codelight_all_permissions', 0, 3 );

    lets me log in to the admin area of wordpress…
    Plus, this all started after I switched to HTTPS. Then having an SSL error on my phpmyadmin does seem a bit suspicious to me.

    Thread Starter steigerdaniel

    (@steigerdaniel)

    @alanfuller (Didn’t know you can acctually tag people in the comments ;))
    I backed up my page (from FTP and the whole DB as well), deleted both and reinstalled WordPress. After the installation I get to the Login and it says immediately “you do not have sufficient permissions to access this page”.

    Now I am not quite sure whether that makes an impact or not, but in the phpmyadmin I discovered few issues as well.
    My PHP-Version is 7.2.24 (according to WP it’s supposed to be 7.4. for the most recent WP-installation).
    As soon as i log into phpmyadmin I get an OpenSSL error: error:0909006C:PEM routines:get_name:no start line error. Now since I dont admin the DB part I asked the admin to update the phpmyadmin from version 4.6.6 to 4.9.1, which I found on stackoverflow and to double check the correct cert file, which i found here.

    Conclusion: Not sure if any of this helps, however I keep you posted ??

    Thread Starter steigerdaniel

    (@steigerdaniel)

    I did an Update on the option_name siteurl and home to the SSL URL

    Thread Starter steigerdaniel

    (@steigerdaniel)

    Hi @takanakui,

    Yes, the plugin is active and I have signed my primary menu to the bottom right menu in the settings.
    I have cleared out the PHP error, however still not visible…

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