joomla error establishing a database connection - url

Working in Joomla, I was trying to update a URL redirect from old URL to new URL via .htaccess but I think in my messing around on the backend, I did something that is now causing old URL to show an error message "Error establishing a database connection" and nothing I do is resolving this error message.
Prior to making the change I made a copy of the .htaccess file and renamed it to something else so that if I made a mistake such as this, I could easily revert back to it but restoring that file did not work. I also cleared my cache which fixed other issues but not this particular one. Ended up creating a new page and menu so now the new URL works like it's supposed to. Just trying to learn how to get back the old URL. Please help if someone knows a good fix. Thank you in advance.

Related

Server Error 404 is returned when trying to get an authorization code from live.com

We have two applications which use OAuth2 authentication to get access to Hotmail.
The first application works fine. But in the second application we have an error after entering login/password:
Server Error
404 - File or directory not found.
The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable.
URLs and code used to show these URLs are identical in both application:
url = "https://login.live.com/oauth20_authorize.srf?response_type=code&redirect_uri=https%3A%2F%2Flogin.live.com%2Foauth20_desktop.srf&scope=wl.imap+wl.offline_access+wl.emails&client_id=REAL-CLIENT-ID"
self.browser.load(QUrl(url))
Unfortunately, I have no idea how can fix it. Can anyone help me with this?
It's weird but this issue was fixed by adding:
QCoreApplication.setOrganizationName("anOrganizationName")
QCoreApplication.setOrganizationDomain("anOrganizationDomain")
QCoreApplication.setApplicationName("anApplicationName")
Perhaps it would be enough one of these string to fix issue. I didn't check it.

typo3 website move to other domain - need help step by step

I just got a typo3 website and need to transfer to an other domain.
Is it enough to copy all the folders (except typo3temp?) to the new place?
First I just changed baseurl in ts but it didn't do anything..
Should I do anything with the database when it still on the same server?
In case your question is about "cloning" a complete TYPO3-system an rsync/copy of the whole folder (yes including typo3temp) is the best idea, as this works on all versions, everything else (like excluding typo3temp) depends a whole lot on your TYPO3 expertise to resolve. The database needs to be copied as well. If you need to change db-name or db-credentials on the new system you need to change them in
typo3conf/LocalConfiguration.php
As soon as you have done this Install Tool and Backend should work: At first try the Install Tool:
https://my.new.domain/typo3/install/
If that doesn't work your problem is with the webserver configuration or dns.
If that works (and the reports there show no errors), try the Backend:
https://my.new.domain/typo3/
In case your question is about which changes are necessary to your TYPO3-installation if domain changes and the web server itself is configured correctly, then there are probably two things you need to change, in order to make the frontend work (although both cases might be omitted, depending on your configuration):
sys_template record, if any of those use absRefPrefix or baseurl. If you have access to the MySQL-Database a
SELECT pid FROM sys_template WHERE config LIKE "%baseurl%" OR "%absRefPrefix";
might help finding the template, however these template configuration might also be stored in files (typically in fileadmin/templates/**)
sys_domain records, a MySQL
SELECT pid FROM sys_domain;
might uncover where those are stored
However these changes are only necessary to enable the frontend to work.
Add a domain record in the backend. And while you don't need the content of the typo3temp folder, make sure the folder actually exists.
When you go to the new domain name in your browser, what happens?
Do you get redirected to the old domain? If so, maybe there is an .htaccess redirect happening.
Do you get to the new domain, but if you click on a link end up on the old one?
Do you get an error? If so, what is the error?
Does something else happen?

Umbraco 7: Random 404

We have never experienced this issue in Umbraco 4, but we've got this twice in Umbraco 7.
The Problem
So we've got a page: www.mywebsite.com/sale
It has been working for a month, then suddenly it shows 404:
The (non-ideal) Solution
We could change the template of this document, eg. from SalePage to TextPage, then back to SalePage.
That will temporarily fix it.
But after IIS restart, or after republishing the page, it will show the 404 error again.
For a permanent fix, we have to change the page name, eg. from Sale to Sale1.
The Question
Sometimes changing the page name is not an ideal solution at all.
Has anyone experienced this? Or know where to look? May be the database has a corrupted entry somewhere..?
We found the problem! We have this structure under Content:
Home
HomeSlide1
HomeSlide2
Pages
Sale
About Us
etc
The problem started when someone created a "home slide" under Home called "sale".
So, both Home/sale and Pages/Sale has the same path: /sale/
Deleting/renaming Home/sale fixed the problem.
This sounds like a corrupt cache.
To find out what went wrong:
Investigate the xml config (/config/umbraco.config)? I suspect this file will still contain the correct information.
If the umbraco.config file doesn't contain wrong elements, check the examine indexes. When you do a "rebuild indexes" from the developer node in the umbraco backend the problem might go away also.
If you know what is going wrong, you can start finding a solution for fixing the issue. E.g. finding out which action went wrong.

Flickr background download session failed: You do not have permission to access the requested resource

I have a school assignment where I need to use this project: http://web.stanford.edu/class/cs193p/cgi-bin/drupal/system/files/sample_code/Photomania_2.zip
When I first downloaded it, it worked fine. I was working on it one day, when I got this message: "Flickr background download session failed: You do not have permission to access the requested resource."
I didn't know how to fix it, so I went back and downloaded it again to see if I did something to the code that caused that I got that error. When I downloaded a fresh copy of the photomania application, I would yet again get that error.
Does anyone know how to fix this?
Did it stop working on June 27th? The Flickr API went SSL-only on that day. That project probably needs its API endpoints updating to use SSL. I'd ask your tutor about that. Or just try updating all the API endpoints you can find to use the appropriate https: equivalents, as described in that blog post.
I just encountered the same problem. Matt hit the nail on the head. Make sure you add in your API key and do a find/replace to make all "http:" references "https:".

Wamp server has deleted my Service Package

I just when to continue with my web site in Flash builder and there was an error. When I looked into it my Service folder which held my PHP script is missing and unfortunately I hadn't backed up for some months.
Has anyone had this issue and is there a way to get it back? it just disappeared :(
C:\wamp\www\index-debug\services\CustomerService.php is missing
Never happened to me. You can use "Handy Recovery" or "recuva" to get your file back. Good luck with that

Resources