• Resolved Carl

    (@carlconrad)


    Hello,

    My WordPress is installed in a /wordpress/ sub folder. The manifest does not appear in the root folder but in the /wordpress/ path. Any thing I am missing?

    BTW: I started translating your plug-in in French.

    Carl

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Nico Martin

    (@nico_martin)

    Hi Carl

    Thanks for using progressive WordPress! And thank you very much for translating it!

    The manifest should be inside the root folder of your WP installation. In the same folder as your wp-config.php.
    Then it will be included inside the head of your page.

    Is there a problem with the page?

    Kind regards,
    Nico

    • This reply was modified 6 years, 5 months ago by Nico Martin.
    • This reply was modified 6 years, 5 months ago by Nico Martin.
    Thread Starter Carl

    (@carlconrad)

    Hi Nico,

    Unless I’m wrong, you refer to the manifest file using ABSPATH:
    public $manifest_path = ABSPATH . 'pwp-manifest.json';
    but, under certain circumstances (when WordPress is not installed in the root folder), ABSPATH does not reflect the root folder.

    Regards,
    Carl

    Plugin Author Nico Martin

    (@nico_martin)

    ABSPATH always reflects the root folder of your WP installation. Its defined inside the wp-config.php as dirname( __FILE__ ).

    I want the pwp-manifest.json to be generated in the same folder as the wp-config.php, which is the root folder of your WP installation. So the code you mentioned above should be fine.

    Or whats the actual problem you’re having? Are you able to generate the manifest file? And will it be included inside the head of your page?

    Kind regards,
    Nico

    Thread Starter Carl

    (@carlconrad)

    Hi Nico,

    You may check my development environment at dev.carlconrad.net. wp-config.php sides in the home folder but WordPress is installed in a /wordpress/ sub-folder. The manifest only responds to https://dev.carlconrad.net/wordpress/pwp-manifest.json

    Regards,
    Carl

    Plugin Author Nico Martin

    (@nico_martin)

    Hi Carl

    Thats a preatty strange setup. Whats the advantage of moving the wp-config.php out of the root folder?

    Kind regards,
    Nico

    Thread Starter Carl

    (@carlconrad)

    Hi Nico,

    I found this advice in numerous security related blogs some time ago and it has become my habit… Probably because it becomes unreadable from HTTP requests.

    Carl

    Plugin Author Nico Martin

    (@nico_martin)

    Hi Carl

    Version 2.0 finally fixes this very special issue ??

    Kind regards,
    Nico

    Thread Starter Carl

    (@carlconrad)

    Gorgeous!

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘manifest.json in sub folder’ is closed to new replies.