react-cookie-consent is not working in IP? But it's working fine in Localhost - react-cookie-consent

I have installed a react-cookies-consent and also I have customized it.
npm i react-cookie-consent
It's working fine in localhost but when I have moved my code to the development environment which server is running in IP. It's not working there why??
Could you please help me to come out?

Related

Syncing MAMP MySQL Database on MEGA

SO I've read countless tutorials and I've spent hours trying to solve this but have run out of ideas. Trying to sync my Wordpress database on MEGA (every other tutorial said dropbox but I got MEGA) and everything but one things works on my windows PC.
I've installed MAMP for both (available for Mac and windows now), made them the same settings and properly integrated MEGASync with it. I created the symlink from both Windows and Mac and updates seem to be happening when I make changes or fool around with wp-config to fix this.
With wordpress I ran the installer on the MAC and it works fine for syncing. On Windows 8.1 however everything functions between MEGA but when connecting to http://localhost:8888 or http://127.0.0.1:8888 Im simply getting a 'Waiting for Connection". Opening phpmyadmin from either computer shows the database I created as well.
Things I've tried.
- Turn off firewall
- Ran a netstat -a command and found it was listening on 0.0.0.0:8888
- Tried to visit localhost:8889 (mysql) and it downloaded a file.
- Made sure my hosts file had 127.0.0.1 localhost and has ::1 localhost
- Can ping localhost and 127.0.0.1
- Checked apache logs and found them empty
Anything I can do to try and log where to narrow down why it's timing out (it seems) on my local windows box?
Not sure if it's much of a solution but did solve this. I uninstalled both MAMP servers (Mac and Windows) and did the entire setup process but started on the Windows machine first this time.
I think the problem was a different structure had been synced (not synced) from both computers (Mac was looking like a different file structure).
No I see the proper contents in both directories.

HealthCheck not working properly

The HealthChecks in the Google Console are not working properly. Initially it worked properly. But now it is not working and always the instances in the backend service are shown unhealthy. Same instance if I hit the same health check manually working fine. Could someone please help me out on this?
This is working fine now. The problem is with the Path in the Health Check.
I previously installed the wordpress on DB and configured the image to LoadBalancer. So the health check path with "/" passed.
But now I haven't installed the wordpress on DB so the health check has to be done on the path "/wp-admin/install.php".
After the change in the path this is working fine.

VisualSVN messed up my localhost in Chrome

EDIT:
The localhost seem to be working fine in my firefox, IE and even Chrome's incognito mode. These is a problem specific to chrome. Any ideas?
PREVIOUS:
I just uninstalled VisualSVN Server from my Windows 7. But now when I try to hit localhost, I get redirected to localhost/svn. I am using WAMP and developing something that requires the root access. I can not put the project in a sub directory. I have also tried netstat -ao but no process is using ports 80 or 443.
You may have solved the problem....but for future, those who came here like me looking for a solution to this, this seems to be a prob for browser cache....clearing browser cache history solves the problem.....did for me...
If you uninstalled VisualSVN Server, then it's some other application which runs on 80 / 443 port that redirects you to /svn. Some steps that may help you to determine the root cause:
Verify that VisualSVN Server has been successfully uninstalled.
Start appwiz.cpl and see whether VisualSVN Server is listed as the installed application,
Start services.msc and see whether "VisualSVN Server" service is listed.
Run netstat -anbv and see which app runs on HTTP(S) port.

Running online website through virtual box/ubuntu with godaddy domain

I really need help setting my website online with my GoDaddy domain. OK this is what I've done so far, please let me know if I did anything wrong, help will be much appreciated.
Ok so what I did was:
-Download virtualbox and downloaded Ubuntu Desktop (was I supposed to download the Server one?)
-I then bought my GoDaddy domain, example.com and pointed it to my home's router/ provided my IP address.
-So then I went to my routers config and allowed port 80 to my Ubuntu Desktop's IPV4/IP address (Starts with 10.0...
-I have Apache running on my Ubuntu/Linux Desktop, and made a file in the /etc/apache2/sites-available/example.com and provided the document root, server name, etc and then enabled the site using
sudo a2ensite example.com.
-I enabled bridge network on my Ubuntu and linux settings.
What else do I have to do? When I went to my router's configuration, it say's that my Ubuntu/virtual box is offline even though the Ubuntu does have internet. I'm able to access Facebook for example on my Ubuntu.
Is there anything else that I'm missing, please and please and please help. Would greatly appreciate it.
Maybe you will find this doc helpful http://catlingmindswipe.blogspot.ru/2012/06/how-to-virtualbox-networking-part-two.html But still, remember that the author of the article intends to create a sandbox, not a website for a regular use.
By the way, what is the operating system on your hardware box ?

Can't Access localhost or 127.0.0.1 in wamp

I was using wamp 2.1a for my wordpress blog and a website. It was working fine. Then I caught a google redirect virus. I tried hard to get rid of it, finally i fixed it. Then, suddenly my wamp server stopped working, I mean both the services were running but when I opened localhost or 127.0.0.1, it just kept loading, and went on forever till I closed the browser's tab. Then I upgraded to wamp 2.2a and the problem is still there.
I've also checked the hosts file, tried to change the port to 8080 for apache, but it didn't help. I do not have skype (and never used it) so there's no port 80 conflict. When I restart the services, the apache service starts but the mysql service doesn't. When I click wamp tray menu, click on the remove service for mysql, a message box appears saying - mysqld.exe has stopped working. The only option I have there is close program.
I can't access my blog so I can't so any testing. Please tell me if this happened to you or if you have a solution to this. Any help is appreciated.
Did you try different web browser? I guess it is browser problem, clear your browser cache, might solve your problem.
I have found the following solution in another post here (from Sergiu Butnarasu) which worked for me.
Modify the apache HTTPD.CONF file. Change "Listen 80" to "Listen 0.0.0.0:80 http://forum.wampserver.com/read.php?2,93143