Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Google Cloud PHP Web App: Issue with Page Navigation and Code Loading

I'm encountering an issue with my Google Cloud PHP web application where I'm attempting to link between two web pages. Specifically, when a link is clicked to navigate to the next page, it should reload with the updated URL (e.g., appspot/project/page2). However, despite having the code for the second page correctly set up at appspot/project/page2, the old code is being loaded instead.

Steps to Reproduce:

  1. Upload the application to the Google Cloud platform.
  2. Navigate to the first page of the application.
  3. Click on the link or button that should direct to the second page (appspot/project/page2).

Expected Behavior: Upon clicking the link to navigate to the second page, I expect the page to load the correct code from appspot/project/page2.

Actual Behavior: Instead of loading the updated code from appspot/project/page2, the page loads the old code.

Environment:

  • Runtime: PHP 8.3
  • Deployment Method: gcloud app deploy
  • Google Cloud Platform: Google App Engine

Additional Notes: I've set up the runtime environment using PHP 8.3, and I deploy the application using gcloud app deploy. However, despite the deployment process, the correct code is not being loaded when navigating between pages.

0 1 173
1 REPLY 1

Hi @Jackson2Piper,

Welcome to Google Cloud Community!

It would be better if you provide a sample reproducible code that we could test or documentation that we could follow so that we could check if the configuration is correct or the steps are properly followed. Also specify if you're using App Engine Standard or Flexible.

You could follow the following documentations as you may have missed some important steps:

If the aforementioned steps didn't work, you may either file a bug or reach out to Google Cloud support for additional assistance in resolving your concern.

Hope this helps.

Top Labels in this Space
Top Solution Authors