rock-solid / wordpress-pwacommerce

PWACommerce - WooCommerce Mobile Plugin for Progressive Web Apps & Hybrid Mobile Apps
http://pwacommerce.com
GNU Lesser General Public License v3.0
20 stars 6 forks source link

Getting Call to a member function get_page_permastruct() on a non-object (NULL) #8

Open ashishrajsrivastava opened 5 years ago

ashishrajsrivastava commented 5 years ago

Describe the bug A clear and concise description of what the bug is.

I Know the plugin is not yet tested with latest WordPress version 5.0.3 (that's what it said on plugin page) but to try it out I recently installed the lite version on my woocommerce website, but after installation and the basic configuration website gives error when accessing from a mobile device.

the error message that is:

Fatal error: Call to a member function get_page_permastruct() on null in /wp-includes/link-template.php on line 357

To Reproduce Steps to reproduce the behavior:

  1. Install the plugin.
  2. Configure it from pwacommerce menu.
  3. Access the website from Mobile device.

Expected behavior Fatal error: Call to a member function get_page_permastruct() on null in /wp-includes/link-template.php on line 357

WordPress / WooCommerce setup (please complete the following information):

Smartphone (please complete the following information, if it applies):

anghelalexandra commented 5 years ago

Hey @ashishrajsrivastava,

I tested on WordPress 5.0.3 with WooCommerce 3.5.3 and I'm not able to reproduce the error. Since the error is triggered from a WordPress file and not the plugin files, it's difficult narrowing it down. Can you give me more details:

ashishrajsrivastava commented 5 years ago

Hey @ashishrajsrivastava,

I tested on WordPress 5.0.3 with WooCommerce 3.5.3 and I'm not able to reproduce the error. Since the error is triggered from a WordPress file and not the plugin files, it's difficult narrowing it down. Can you give me more details:

  • What URL are you accessing on your mobile device? Are you on the home page or on a different URL?
  • Are the API routes working? For example, if you access http://yourdomain/wp-json/pwacommerce/products/?page=1&featured=1&order=asc&orderby=title&per_page=20, do you see a JSON file with products?