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 7 years, 11 months ago by
Nico Martin.
-
This reply was modified 7 years, 11 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
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
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
Hi Carl
Version 2.0 finally fixes this very special issue 😀
Kind regards,
Nico