• Resolved WP-Henne

    (@wp-henne)


    Hello,

    i get this error while using the plugin at different servers but wordpress never runs at the webroot.

    Thank You!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter WP-Henne

    (@wp-henne)

    Hello again,

    I’ve found a quick solution by changing the content of the path of $wpadmin and $wpincludes after line 184.

    Because the used formatting of those paths get not the correct path while have WordPress in sub-directory.

    The result is /var/www/vhosts/domain.tld/httpdocs/wordpress/wordpress/wp-includes/
    (twice wordpress)

    If deleted after line 184 and using this not real fine solution, but i’m not so familiar with the constants and with PHP, sorry.

    $wpadmin = '/' . trim( $contents[ 'wp-content' ], '/wp-content') . '/wp-admin';		
    $wpincludes = '/' . trim( $contents[ 'wp-content' ], '/wp-content') . '/wp-includes';
    

    May this helps to make a real working plugin while using a sub-directory installation.
    Cheers!

    • This reply was modified 4 years, 4 months ago by WP-Henne. Reason: optical correction
    • This reply was modified 4 years, 4 months ago by WP-Henne.
    Plugin Author idowebwork

    (@mannweb)

    Using static text like that would break other sites using this plugin. Looking for a solution.

    Give this a go, replacing those two lines:

    $wpadmin = str_replace( site_url().'/', ABSPATH, admin_url() );
    $wpincludes = str_replace( site_url().'/', ABSPATH, includes_url() );

    This should fix the issue, whether installed in the root or in a subfolder.

    • This reply was modified 4 years, 4 months ago by idowebwork.
    • This reply was modified 4 years, 4 months ago by idowebwork.
    • This reply was modified 4 years, 4 months ago by idowebwork.
    Plugin Author idowebwork

    (@mannweb)

    No response, so marking as resolved.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error: No such file or directory in my-simple-space.php:222’ is closed to new replies.