dalenguyen / firebase-wordpress-plugin

A plugin that helps to integrate Firebase to WordPress
https://firebase-wordpress-docs.readthedocs.io
GNU General Public License v2.0
111 stars 31 forks source link

Could not load user data! #65

Closed riturajpandey closed 4 years ago

riturajpandey commented 4 years ago

Describe the bug Not able to see/remove data

To Reproduce Just set up firebase on WordPress Go to the database tab click on real-time and enter a collection name

Expected behavior Let show or add data

Screenshots screenshot

Desktop Chrome browser

dalenguyen commented 4 years ago

Hi @riturajpandey, I think the configuration for settings is incorrect. Can you take a snapshot of that? You can sensor information in the picture.

And it would be great if you can open the console log on the browser to check for error messages.

Guide on deploying cloud functions: https://www.youtube.com/watch?v=D-xvzJ9K8jw

riturajpandey commented 4 years ago
Screenshot 2020-06-05 at 12 20 39 AM

It is showing me this error in the console.

I have cross-checked Base Domain,Dashboard and Frontend Token they are correct.I have used this guide

riturajpandey commented 4 years ago
Screenshot 2020-06-05 at 1 23 26 PM

Snapshot of settings.

dalenguyen commented 4 years ago

Hi @riturajpandey, if the process is correct. Your firebase console should include those functions.

image

If those functions exist, and they still don't work. Send me an email at dale@dalenguyen.me, I will help you to inspect it.

riturajpandey commented 4 years ago

Ok let me check the functions.

riturajpandey commented 4 years ago
Screenshot 2020-06-05 at 7 02 15 PM

I don't have the functions with these names instead I am deploying my existing cloud functions which I have created.

Should I create functions like API-database etc?

Where can i find the definition of these functions?

dalenguyen commented 4 years ago

Hi @riturajpandey,

It's in the plugin file when you first download. Please check the guide that I sent.

https://www.youtube.com/watch?v=D-xvzJ9K8jw

Thanks,

MerlinOfCode commented 4 years ago

can anyone tell me what the "base domain" is supposed to be? I have finally got to the point where I have my frontend and dashboard tokens, but I do not know what to enter in the plugins settings where is calls for "base domain." I have never heard that term before. I just put my domain wikacy.com in there but it must be incorrect because I am getting the same "could not load user data" error when i search for a firebase document.

dalenguyen commented 4 years ago

@Bikerflyeradmin it's the cloud functions URL. Please watch the video at 7:44s.

https://youtu.be/D-xvzJ9K8jw?t=442

@riturajpandey did you manage to deploy the functions?

MerlinOfCode commented 4 years ago

No, when I entered the command in the user guide to deploy the functions it gave me an error saying not found, or file not found or something to that effect. Please help.

MerlinOfCode commented 4 years ago

Can someone tell me what I have to do in firebase to get my "base domain" to show up the way it does in the video guide.

dalenguyen commented 4 years ago

No, when I entered the command in the user guide to deploy the functions it gave me an error saying not found, or file not found or something to that effect. Please help.

Could you please take a snapshot of the error and steps that you did? It’s easier to figure out what happens.

dalenguyen commented 4 years ago

Closed due to inactivity.

MerlinOfCode commented 4 years ago

Wow, guess I will have to try to figure it out myself. Do you know of any good firebase tutorials where I might be able to find out how to determine what the cloud functions url is?

On Sun, Jun 28, 2020, 9:28 AM Dale Nguyen notifications@github.com wrote:

Closed due to inactivity.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dalenguyen/firebase-wordpress-plugin/issues/65#issuecomment-650758203, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO6NLXIOAAMJBRY3TGMKAJTRY5AQZANCNFSM4NS3AA3A .

MerlinOfCode commented 4 years ago

Im trying to tackle this again. I would really like to get this plugin to work. Here is the error message I get when I try to install the functions with the command you provided in the tutorial.

C:\Users\owner>npm i -g firebase-tools npm WARN deprecated request@2.88.2: request has been deprecated, see https://git hub.com/request/request/issues/3142 C:\Users\owner\AppData\Roaming\npm\firebase -> C:\Users\owner\AppData\Roaming\np m\node_modules\firebase-tools\lib\bin\firebase.js npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules\fi rebase-tools\node_modules\chokidar\node_modules\fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@ 2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"} )

C:\Users\owner>node --version v14.4.0

C:\Users\owner>cd functions/ npm install The system cannot find the path specified.

C:\Users\owner>

On Mon, Jun 8, 2020 at 12:18 PM Dale Nguyen notifications@github.com wrote:

@Bikerflyeradmin https://github.com/Bikerflyeradmin it's the cloud functions URL. Please watch the video at 7:44s.

https://youtu.be/D-xvzJ9K8jw?t=442

@riturajpandey https://github.com/riturajpandey did you manage to deploy the functions?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dalenguyen/firebase-wordpress-plugin/issues/65#issuecomment-640729864, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO6NLXLEGPBUNLWLQKLFCP3RVUFMZANCNFSM4NS3AA3A .

MerlinOfCode commented 4 years ago

im getting the same "could not load user data" error

JQMIGRATE: Migrate is installed, version 1.4.1 /wp-admin/wikacy.com/api-database/v1/getDoc:1 Failed to load resource: the server responded with a status of 404 (Not Found) firebase-admin.js?ver=1.0.0:1 Could not load user data! t.showFirebaseErrorMessage @ firebase-admin.js?ver=1.0.0:1 jquery.js?ver=1.12.4-wp:4 POST https://wikacy.com/wp-admin/wikacy.com/api-database/v1/getDoc 404 (Not Found) send @ jquery.js?ver=1.12.4-wp:4 ajax @ jquery.js?ver=1.12.4-wp:4 u @ firebase-admin.js?ver=1.0.0:1 o @ firebase-admin.js?ver=1.0.0:1 dispatch @ jquery.js?ver=1.12.4-wp:3 r.handle @ jquery.js?ver=1.12.4-wp:3 firebase-admin.js?ver=1.0.0:1 Could not load user d

On Mon, Jun 8, 2020, 9:17 PM Dale Nguyen notifications@github.com wrote:

No, when I entered the command in the user guide to deploy the functions it gave me an error saying not found, or file not found or something to that effect. Please help.

Could you please take a snapshot of the error and steps that you did? It’s easier to figure out what happens.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/dalenguyen/firebase-wordpress-plugin/issues/65#issuecomment-640970886, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO6NLXNCXGXB5GU2ML7O2YLRVWETZANCNFSM4NS3AA3A .