Error in wp-includes\class-wp-query.php

What issue or error are you experiencing?

I have install a theme (from WP Elemento) and i have now this message :

Fatal error: Uncaught Error: Call to undefined function is_user_logged_in() in C:\Users\JennyferTanovan\Local Sites\jenny-en-vadrouille\app\public\wp-includes\class-wp-query.php:2671 Stack trace: #0 C:\Users\JennyferTanovan\Local Sites\jenny-en-vadrouille\app\public\wp-includes\class-wp-query.php(3787): WP_Query->get_posts() #1 C:\Users\JennyferTanovan\Local Sites\jenny-en-vadrouille\app\public\wp-includes\class-wp-query.php(3919): WP_Query->query(Array) #2 C:\Users\JennyferTanovan\Local Sites\jenny-en-vadrouille\app\public\wp-content\plugins\tour-booking-manager\tour-booking-manager.php(87): WP_Query->__construct(Array) #3 C:\Users\JennyferTanovan\Local Sites\jenny-en-vadrouille\app\public\wp-content\plugins\tour-booking-manager\tour-booking-manager.php(33): TTBM_Woocommerce_Plugin::on_activation_page_create() #4 C:\Users\JennyferTanovan\Local Sites\jenny-en-vadrouille\app\public\wp-content\plugins\tour-booking-manager\tour-booking-manager.php(20): TTBM_Woocommerce_Plugin->load_ttbm_plugin() #5 C:\Users\JennyferTanovan\Local Sites\jenny-en-vadrouille\app\public\wp-content\plugins\tour-booking-manager\tour-booking-manager.php(103): TTBM_Woocommerce_Plugin->__construct() #6 C:\Users\JennyferTanovan\Local Sites\jenny-en-vadrouille\app\public\wp-settings.php(453): include_once(‘C:\Users\Jennyf…’) #7 C:\Users\JennyferTanovan\Local Sites\jenny-en-vadrouille\app\public\wp-config.php(103): require_once(‘C:\Users\Jennyf…’) #8 C:\Users\JennyferTanovan\Local Sites\jenny-en-vadrouille\app\public\wp-load.php(50): require_once(‘C:\Users\Jennyf…’) #9 C:\Users\JennyferTanovan\Local Sites\jenny-en-vadrouille\app\public\wp-admin\admin.php(34): require_once(‘C:\Users\Jennyf…’) #10 C:\Users\JennyferTanovan\Local Sites\jenny-en-vadrouille\app\public\wp-admin\users.php(11): require_once(‘C:\Users\Jennyf…’) #11 {main} thrown in C:\Users\JennyferTanovan\Local Sites\jenny-en-vadrouille\app\public\wp-includes\class-wp-query.php on line 2671


System Details

  • Local Version: 7.1.0+6396

  • Operating System (OS) and OS version: WINDOWS


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)

{"localVersion":"7.1.0+6396","osPlatform":"win32","osRelease":"10.0.19045","osArch":"ia32","windowsEdition":"Microsoft Windows 10 Business","linuxEdition":null,"level":"warn","message":"Electron Event ready","timestamp":"2023-07-27T14:22:05.655Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2023-07-27T14:25:04.321256Z 0 [System] [MY-010116] [Server] %%resourcesPath%%\\lightning-services\\mysql-8.0.16+6\\bin\\win64\\bin\\mysqld.exe (mysqld 8.0.16) starting as process 18000","timestamp":"2023-07-27T14:25:06.612Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2023-07-27T14:25:04.325780Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.","timestamp":"2023-07-27T14:25:06.612Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2023-07-27T14:25:06.521058Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.","timestamp":"2023-07-27T14:25:06.613Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2023-07-27T14:25:06.612790Z 0 [System] [MY-010931] [Server] %%resourcesPath%%\\lightning-services\\mysql-8.0.16+6\\bin\\win64\\bin\\mysqld.exe: ready for connections. Version: '8.0.16'  socket: ''  port: 10005  MySQL Community Server - GPL.","timestamp":"2023-07-27T14:25:06.614Z"}
{"localVersion":"7.1.0+6396","osPlatform":"win32","osRelease":"10.0.19045","osArch":"ia32","windowsEdition":"Microsoft Windows 10 Business","linuxEdition":null,"level":"warn","message":"Electron Event ready","timestamp":"2023-07-31T06:21:37.646Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2023-07-31T06:22:43.612808Z 0 [System] [MY-010116] [Server] %%resourcesPath%%\\lightning-services\\mysql-8.0.16+6\\bin\\win64\\bin\\mysqld.exe (mysqld 8.0.16) starting as process 19616","timestamp":"2023-07-31T06:22:46.184Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2023-07-31T06:22:43.628767Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.","timestamp":"2023-07-31T06:22:46.184Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2023-07-31T06:22:44.830897Z 0 [System] [MY-010229] [Server] Starting crash recovery...","timestamp":"2023-07-31T06:22:46.184Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2023-07-31T06:22:44.840653Z 0 [System] [MY-010232] [Server] Crash recovery finished.","timestamp":"2023-07-31T06:22:46.185Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2023-07-31T06:22:45.794366Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.","timestamp":"2023-07-31T06:22:46.185Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2023-07-31T06:22:46.184669Z 0 [System] [MY-010931] [Server] %%resourcesPath%%\\lightning-services\\mysql-8.0.16+6\\bin\\win64\\bin\\mysqld.exe: ready for connections. Version: '8.0.16'  socket: ''  port: 10005  MySQL Community Server - GPL.","timestamp":"2023-07-31T06:22:46.186Z"}
{"localVersion":"7.1.0+6396","osPlatform":"win32","osRelease":"10.0.19045","osArch":"ia32","windowsEdition":"Microsoft Windows 10 Business","linuxEdition":null,"level":"warn","message":"Electron Event ready","timestamp":"2023-07-31T10:33:32.658Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2023-07-31T10:33:47.439695Z 0 [System] [MY-010116] [Server] %%resourcesPath%%\\lightning-services\\mysql-8.0.16+6\\bin\\win64\\bin\\mysqld.exe (mysqld 8.0.16) starting as process 19216","timestamp":"2023-07-31T10:33:50.483Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2023-07-31T10:33:47.480394Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.","timestamp":"2023-07-31T10:33:50.484Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2023-07-31T10:33:48.813014Z 0 [System] [MY-010229] [Server] Starting crash recovery...","timestamp":"2023-07-31T10:33:50.485Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2023-07-31T10:33:48.818842Z 0 [System] [MY-010232] [Server] Crash recovery finished.","timestamp":"2023-07-31T10:33:50.485Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2023-07-31T10:33:49.906945Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.","timestamp":"2023-07-31T10:33:50.486Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2023-07-31T10:33:50.496908Z 0 [System] [MY-010931] [Server] %%resourcesPath%%\\lightning-services\\mysql-8.0.16+6\\bin\\win64\\bin\\mysqld.exe: ready for connections. Version: '8.0.16'  socket: ''  port: 10005  MySQL Community Server - GPL.","timestamp":"2023-07-31T10:33:50.487Z"}


Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.

Hi @jennyfer

Fatal errors like this aren’t specific to Local but are the result of some type of plugin, theme or site-level conflict. You could open your site shell and use WPCLI commands to test deactivating plugins, swapping the theme, and so on to get the site back up and running and determine a culprit. You could also try searching for the fatal error online or checking with the plugin/theme support teams for further assistance.
I can see in the fatal error for example it references tour-booking-manager and Woocommerce.

Hello,

I’ve tried to open the site shell and do “wp --skip-plugins --skip-themes” but it opened the “Manage WordPress through the command-line.” Do i need to put something else in the code ?

I have contact the Theme support. Is it possible to share my website with them when my website is not online ?

Hi @jennyfer - yes, that is possible! You can generate a Live Link for your site - Live Links - Local

Your machine will need to stay awake and open while the Live Link is enabled. But this will allow the Theme’s support team to view the site.

Thank you.

When i click on ENABLE, there is an error message :

I tried many time and now it’s ok.
Thank you.

One more question : They need the cPanel/Hosting details to check.
Where can i find that?

Hi @jennyfer

Technically your machine is the host for the site and generating the Live Link. The Live Link is just meant to be a way to share what the site looks like with others. They aren’t able to access it or your Local app to change it. For that type of development workflow, you might look at pushing the site up to a Staging or Demo site. For example, Flywheel has free 14-day Demos.

Demo Site

Otherwise, you may have to export the site into a zip and send it to them so that they can open their own Local app and import it in.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.