Skip to main content

"Fehlerhafter Code"

One day I tried to log in to my Joomla 1.7.1 frontend area as a member of the site. I entered the correct contact information, but on clicking "Log In" I just got a white screen with the message "Fehlerhafter Code". Google only wanted me to update the page (which needs to be done sometime, I know...) - so that was not very helpful.

Suddenly I remembered that I had changed the language settings of my page some time ago - it was German before, and I changed it to English. So far, so good, but I apparently forgot to set the default language for the frontend - I removed the German language pack so that only English was left. But I did not click on the "default" star icon (needs to be yellow).

Go to "Extensions" - "Language Manager" - select the tab "Installed - Site" and make sure you have a default language selected.

When I returned back to the frontend, I cleared the cache and everything worked fine again...

Comments

Popular posts from this blog

Joomla! 2.5: Multiple views, one model

Here goes MVC again: I was a bit confused that every time I created a second or third view for a component, I had to create a separate model for it. Did not make sense to me - I had the necessary algorithms in the model for the first view, did I really need to do copy & paste? I hate it! Redundancy, redundancy, redundancy. That case occurred in my current project - I created user profiles and needed an "edit" view. The data is the same, but I need to have the data in editable text fields instead of fixed labels, and maybe some other buttons here and there...  Well, some time later I realized that I just did not quite understand what Joomla! acutally means by "view".  And that there is something called "layout". Long story short: If you have a model that provides all necessary information and you just want to have a different presentation of it, just add a new .php file to your views/<yourviewname>/tmpl folder - let's call it "layo...

Joomla! 2.5: Menu Items

Some time ago, I started to create my own components. Everything was working fine, but there was one thing that bugged me (even though it is not really necessary... it just looked strange): When I create a link to my component, I always ended up with something like this in my menu manager: Similar thing for the menu item type: I felt like I somehow missed something, but the tutorials did not say anything about it. After playing around for a little while, I found out that the solution actually is pretty simple: The site > views > viewname > tmpl > default.xml file specifies these texts. Joomla! will look for these keys in the language files. Thus, you just need to add some entries to the language files and voila - everything looks nice and clean, just like this: Step-By-Step: Let's assume you already created the default.xml file with contents similar to these: <?xml version="1.0" encoding="utf-8"?> <metadata>     ...

SiteOrigin / PageBuilder and Wordpress: Copy Pages

I recently found myself in need of being able to copy a PageBuilder Wordpress page to another site in my Wordpress site network (happens in multilanguage networks...). Normally I would simply expect to switch to "code view", copy code, create new page in other site, paste code. Unfortunately, PageBuilder does not provide a "code view". Here's how I still managed to not have to recreate the layout in the new site myself: Prerequisites: You need SQL access (PHPmyAdmin or whatever floats your boat) Note: I am still working on Wordpress 4.7.12, not tested on any more recent versions.  1) Save and close original page. 2) Switch to destination network site 3) Create page (name it), leave it empty, close it. 4) Open your mySQL administration console. 5) Find table wp_posts (prefix might be different depending on your setup) 6) Browse to your original post entry. There might be several versions if you use versioning, go to the most recent one (duh). Open / ed...