Clicky

  1. Home
  2. How To
  3. How to fix Warning: session_start() in AMP

How to fix Warning: session_start() in AMP

This issue is actually from the server-side because the session doesn’t seem to have full permission.

Follow these instructions to fix this warning.

Step 1: Create a new folder with the name “tmp” on your root directory with full permission.

Step 2: Copy the below code and insert before session_start() in redirect.php which you can find under this path – (wp-content\plugins\accelerated-mobile-pages\includes\redirect.php )

ini_set(‘session.save_path’, get_home_path() . ‘/tmp’);

That’s it for this tutorial!

We hope it helped you. If you have any feedback or questions, then please share them in the comments section below.

Ask your Questions Directly!
If you can't find the solutions in this article, then just ask us in the comments and we will answer it for you!
Updated on September 9, 2020

    Are you still looking for a solution?

    Then fill out the below form and we will reach out to you within a few hours.


    Was this article helpful?

    Related Articles

    Leave a Comment