when i try to run open http://localhost, an error displays - html

when i try to run open http://localhost, this shows up "An error occurred on the server when processing the URL. Please contact the system administrator.
If you are the system administrator please click 'here' to find out more about this error."
and when i click "here" it brings me to this https://learn.microsoft.com/en-us/iis/application-frameworks/running-classic-asp-applications-on-iis-7-and-iis-8/classic-asp-not-installed-by-default-on-iis
i don't understand why. here are my files:
https://drive.google.com/drive/folders/1ipO8E8b64N5kjd4re-SLAHgj0NpPf-of?usp=sharing

Related

How to address the error when knitting R-Markdown to html?

Markdown to html, it showed error message "pandoc.exe: r-markdown-temp2.docx: openBinaryFile: permission denied (Permission denied)
Error: pandoc document conversion failed with error 1
Execution halted"
When I tried to install "htmltools" it also shows "Error in install.packages : Updating loaded packages".
How to solve the problem?
Check to make sure pandoc is installed, else install with installr::install.pandoc()
Delete or rename previously generated document(s). If you can find that / those document(s), you'll see (that it says) "Read Only", the default MS WORD document load status. Unless that status is removed (by deleting the document, for example, or by clicking on that status bar to change it), you can't have permission to overwrite it.
I think it might be a problem Mapping the network drive where the R project is stored. Check this post and this link

gdrive command line oauth2: cannot fetch token: 400 Bad Request

Suddenly, gdrive command line tool stops working, and always gives the following error message:
Failed to get about: Get https://www.googleapis.com/drive/v3/about?alt=json&fields=maxImportSizes%2CmaxUploadSize%2CstorageQuota%2Cuser: oauth2: cannot fetch token: 400 Bad Request
Response: {
"error": "invalid_grant",
"error_description": "Bad Request"
}
This is because your authorization token has expired.
Currently there is an open Issue to improve this error message here.
You should delete your token with rm ~/.gdrive/token_v*.json
then run the gdrive about command to reauthorize
The steps I fixed it:
rm ~/.gdrive/token_v2.json as other answer suggested.
But I get danger error if I open the link get from gdrive about to re-authorize:
So I create a drive project by go to https://developers.google.com/drive/api/v3/quickstart/js and click "Enable the Drive API":
Click the "API Console" link on that dialog:
To make default redirect url (i.e. urn:ietf:wg:oauth:2.0:oob) works, we need Installed type app and can't use "Web application type app"(which only allow http/https scheme). So click "Create credentials" and choose "Oauth client ID" item:
Ensure select "Other" type:
Copy "Client ID" and "Client secret" from created item. cd to ~/.go/src/github.com/prasmussen/gdrive/, then replace both at this two variables in handlers_drive.go file, save it, e.g.:
const ClientId = "xxx.apps.googleusercontent.com"
const ClientSecret = "xxx"
Then run go install at that directory. Now run gdrive about and open that link in web browser. I get This app isn't verified error page. You are the author who created that app on above steps and suppose safe. Nevertheless simply click "Advanced" link and click Go to Quickstart (unsafe) link:
Click "Allow" it, copy/paste the code back to gdrive about and done:
Managed to resolve this by retriggering gcloud authorization with:
gcloud auth application-default login

PhpMyAdmin is suddenly showing errors

I hope you're doing well.
Last week (friday) phpmyadmin was working just fine, but when I tried to work with it today it shows me some errors and doesn't show databases etc.
I'm workin with xampp on windows 7 (it's not my pc ...)
Here is the error:
Fatal error: Uncaught TypeError: Argument 2 passed to
PhpMyAdmin\Core::arrayWrite() must be of the type array, null given,
called in C:\xampp\phpMyAdmin\libraries\classes\Config.php on line
1049 and defined in C:\xampp\phpMyAdmin\libraries\classes\Core.php:677
Stack trace: #0
C:\xampp\phpMyAdmin\libraries\classes\Config.php(1049):
PhpMyAdmin\Core::arrayWrite('lang', NULL, 'fr') #1
C:\xampp\phpMyAdmin\libraries\classes\Config.php(996):
PhpMyAdmin\Config->setUserValue(NULL, 'lang', 'fr', 'en') #2
C:\xampp\phpMyAdmin\libraries\common.inc.php(453):
PhpMyAdmin\Config->loadUserPreferences() #3
C:\xampp\phpMyAdmin\index.php(27):
require_once('C:\xampp\phpMyA...') #4 {main} thrown in
C:\xampp\phpMyAdmin\libraries\classes\Core.php on line 677
Thank you for your interest.
Have a good day.
Please try clearing your browser cache and remove phpMyAdmin cookies, which start with "pma".
follow these steps
Open up your phpMyAdmin in browser
Press F12 to open Developer tools
go to Application > Clear storage
Clear all Cookies and Cache
Try refreshing the page.
Open up your phpMyAdmin url and press F12 for Developer mode .. go to Application Tab and Clear all Cookies .. refresh your phpMyAdmin page .. should be good to go .. enjoy
follow these steps...
Open up your phpMyAdmin URL
Press F12 for Developer mode
go to Application Tab and
Clear all Cookies
refresh your phpMyAdmin page (if not working once restart the server and try again)
.... .. .. hurray!!! it's done .. ... .....
Restore your database 'phpmyadmin' from your latest backup.
Before you stop MariaDb and then as usual, restore and start your DBMS again. It'll work.
I did not find a "Application tab" in the Developers menu like mentioned by Eliki Bula and Norbert
But followed the steps to clear a single site from the cache in Firefox and "forgot" the url of mypage/phpmadmin and it worked, the error was gone.
So its fact.
The reason for this problem is somewhere in the Cookies from phpmyadmin, to you yust have to clear the cookies for this page on any way.

Why does SimpleHTTP2Server fail to load service worker on localhost

When I try to run the Polymer Shop locally, both the bundled and unbundled builds, using the SimpleHTTP2Server , on my local host using port 5000, the request for service-worker.js fails:
An SSL certificate error occurred when fetching the script.
https://localhost:5000/service-worker.js Failed to load resource: net::ERR_INSECURE_RESPONSE
(index):1 Uncaught (in promise) DOMException: Failed to register a ServiceWorker: An SSL certificate error occurred when fetching the script.
Is there an easy way to get this to work? I tried a number of start up flags, like:
chrome.exe --ignore-certificate-errors --incognito
--unsafely-treat-insecure-origin-as-secure --allow-insecure-localhost
but that didn't help, I still get:
(index):1 Uncaught (in promise) DOMException: Failed to register a ServiceWorker: An SSL certificate error occurred when fetching the script.
Following alesc's suggestion, I found instructions here:
These are instructions for Chrome 55 on Windows 10. It seems these steps may change frequently.
On the page with the untrusted certificate (https:// is crossed out in red), click the lock so a popup opens up.
Click the Details link under the information section at the top.
Click on the View Certificate button.
Click on the Details tab
Click on the Copy to File
Click Next
Export as PKCS #7
Open up Chrome Settings > Show advanced settings > HTTPS/SSL > Manage Certificates
Import the certificate created in step 7 to both the Intermediate Certificate Authorities tab as well as the Trusted Authorities Tab.
Restart Chrome and open your localhost site.

phpMyAdmin - error in processing request 404

I have a issue on my webserver. It is a XAMPP with Apache and MySQL.
Everytime when I click on the "User" tab of phpMyAdmin I get this (phpmyadmin) error:
Error in processing request
Errorcode: 404
Errortext: Not found
This also happens, when I click on any table to look up the data.
What does this mean? What can I do? Can anybody help me? :)
I've tried to make a export of my data. So I clicked on "Export" and then selected "SQL".
When I click on "OK" I get a usual HTTP-404 Error ("object not found").
When you are changed config port as 8080 php.ini.
You can open http://localhost:8080/PHPMyAdmin/.
For example http://localhost:8080/phpmyadmin/