The Joomla! Forum ™





Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Tue Jan 10, 2006 8:27 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 02, 2005 6:59 am
Posts: 15
Hi,

I followed the Definitive guide to Mambelfish in Joomla 1.05  and it still doesn't work  :-\. It displays the english language on start up. But I get the following notices:

Code:
Notice: Undefined index: mbf_dir in C:\Programme\Apache Group\Apache2\htdocs\worthlistening\dev\components\com_mambelfish\mambelfish.html.php on line 71
Notice: Undefined variable: hrefVars in C:\Programme\Apache Group\Apache2\htdocs\worthlistening\dev\components\com_mambelfish\mambelfish.html.php on line 15


And when I try to switch the language I get
Code:
Not Found

The requested URL /worthlistening/dev/index.php&lang=de was not found on this server.


I've set the default language to english and installed "german informal". Both languages are active and the iso is set to "en" for english and "de" on german.

What am I missing???  ???

Greetings
Spanky

_________________
--- Die Welt ist rund, drum spring ich im Viereck ---


Last edited by Spankmaster79 on Tue Jan 10, 2006 3:59 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Tue Jan 10, 2006 8:49 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 557
Location: Gogledd Cymru
The first 2 are not real errors - they are notifications of the use of undefined variables (mainly to identify potentially poor programming).  They shouldn't be there and will be fixed in the next release - however, they do no harm.  Try reducing your error reporting levels in PHP to excluded Notices.

Your error :
Code:
The requested URL /worthlistening/dev/index.php&lang=de was not found on this server.

suggests there may be a problem with SEF or your livesite config setting.  Try adding the "index.php&lang=de" onto the end of the full URL by hand  e.g. http://mytestsite/index.php&lang=de.  Does that work?

Geraint

_________________
email: opensourcematters at copynDOTplusDOTcom


Top
 Profile  
 
PostPosted: Tue Jan 10, 2006 8:56 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 02, 2005 6:59 am
Posts: 15
Quote:
The first 2 are not real errors - they are notifications of the use of undefined variables (mainly to identify potentially poor programming).  They shouldn't be there and will be fixed in the next release - however, they do no harm.  Try reducing your error reporting levels in PHP to excluded Notices.


It's a testing environment so I turned the errorlevel up. I just wanted to know if the notices are ok to be there.

Quote:
suggests there may be a problem with SEF or your livesite config setting.  Try adding the "index.php&lang=de" onto the end of the full URL by hand  e.g. http://mytestsite/index.php&lang=de.  Does that work?


That doesn't work also. SEF? What config do you need to know that could be wrong???

_________________
--- Die Welt ist rund, drum spring ich im Viereck ---


Top
 Profile  
 
PostPosted: Tue Jan 10, 2006 9:00 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 557
Location: Gogledd Cymru
What does your home page URL look like?  I don't need actual URL so you can disguise it if you want.

_________________
email: opensourcematters at copynDOTplusDOTcom


Top
 Profile  
 
PostPosted: Tue Jan 10, 2006 9:08 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 02, 2005 6:59 am
Posts: 15
The URL is http://localhost/worthlistening/dev/ since the site is not online yet

The live site in Global Config says the same.

;)

The real site will be under http://www.worthlistening.ath.cx. Right now you can't get to the dev site online because I redirected it in Apache. I mapped http://www.worthlistening to apache_dir/htdocs/worthlistening/live

_________________
--- Die Welt ist rund, drum spring ich im Viereck ---


Top
 Profile  
 
PostPosted: Tue Jan 10, 2006 9:16 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 557
Location: Gogledd Cymru
Are you saying that 

http://localhost/worthlistening/dev/index.php

works, but not

http://localhost/worthlistening/dev/index.php?lang=de

_________________
email: opensourcematters at copynDOTplusDOTcom


Top
 Profile  
 
PostPosted: Tue Jan 10, 2006 9:21 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 02, 2005 6:59 am
Posts: 15
Wait.....now I'm confusing myself..... ;D

ok I tested again..... typing the URL in by hand works! And the english displays the english content and lang=de returns the "sorry content not available"..... :)

so that works

but using the mamble module it doesnt but says that /worthlistening/dev/index.php&lang=de cannot be found on the server.  :-*

_________________
--- Die Welt ist rund, drum spring ich im Viereck ---


Top
 Profile  
 
PostPosted: Tue Jan 10, 2006 9:23 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 02, 2005 6:59 am
Posts: 15
wait I got it......I think I was blind  :-[

Why does it try to look at /worthlistening/dev/index.php&lang=de

It should be  /worthlistening/dev/index.php?lang=de

???

_________________
--- Die Welt ist rund, drum spring ich im Viereck ---


Top
 Profile  
 
PostPosted: Tue Jan 10, 2006 9:42 am 
User avatar
Joomla! Guru
Joomla! Guru
Offline

Joined: Fri Aug 19, 2005 5:23 pm
Posts: 557
Location: Gogledd Cymru
I was blind too.  Can you confirm your original problem still exists.

If so - is the problem on all pages or one in particular.

_________________
email: opensourcematters at copynDOTplusDOTcom


Top
 Profile  
 
PostPosted: Tue Jan 10, 2006 9:50 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 02, 2005 6:59 am
Posts: 15
Yes I can confirm ;D

It's only the HOME Page. Of course, because there are no variables yet in tho POST String. So I guess the Mambelfish adds simply a &lang=en or &lang=de to the URL.

So if the URL is the index.php page it of course can't work. Because there it should be ?lang=en or ? lang=de. Is that a bug  :o.

Or is there a solution to it.

I used combo box in the frontpage appearance of mambelfish. With linked list (horizontal), (vertical) that doesn't happen. I didn't test Images. So I guess it's a bug in mambelfish..... :'(

Maybe you'll find it...

_________________
--- Die Welt ist rund, drum spring ich im Viereck ---


Top
 Profile  
 
PostPosted: Tue Jan 10, 2006 10:31 am 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 02, 2005 6:59 am
Posts: 15
I just searched a little in /components/com_Mambelfish/mambelfish.html.php and found the

Code:
function _createHRef( $iso )


It's called by the default option in switch before it. It switches between the frontendmode configurations. Theres no option for the comboBox so I guess we're in default.

What I don't understand is whay _createHRef is called with "null" as parameter. All other options are called with $language->iso.

When I exchange "null" with "$language->iso" in default. It produces a ?lang=de&lang=de or ?lang=en&lang=en. So it works but is not really nice coding.

I'll look for it this afternoon.....maybe I'll be able to fix it...

Greetings
Spanky

_________________
--- Die Welt ist rund, drum spring ich im Viereck ---


Top
 Profile  
 
PostPosted: Tue Jan 10, 2006 2:34 pm 
Joomla! Guru
Joomla! Guru
Offline

Joined: Thu Aug 18, 2005 9:46 am
Posts: 824
Hi,
this is a known issue with mambelfish; search for this in components/com_Mambelfish/mambelfish.html.php starting around line 136
function _createHRef( $iso ) {
$href= "index.php";
$vars = explode( "&", $_SERVER['QUERY_STRING'] );
if( count($vars) > 0 && $_SERVER['QUERY_STRING']) {
$hrefVars = "";

and change it to (marked red)

function _createHRef( $iso ) {
$href= "index.php";
$vars = explode( "&", $_SERVER['QUERY_STRING'] );
$hrefVars = "";
if( count($vars) > 0 && $_SERVER['QUERY_STRING']) {
$hrefVars = "";

If you want you may delete that last $hrefVars = ""; (marked bold), since it is already initialized and has no function anymore.
After that it should work correctly.


Top
 Profile  
 
PostPosted: Tue Jan 10, 2006 2:53 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice
Offline

Joined: Fri Sep 02, 2005 6:59 am
Posts: 15
thx for the help  ;D

Made the changes and it all works fine. Now I can start translating  8)

If that's a known bug. Why didn't they fix it in the release the posted in the "Definitive guide to Mambelfish" thread. I would suppose to do so.

thx again anyone who helped me.

Greetings
Spanky

_________________
--- Die Welt ist rund, drum spring ich im Viereck ---


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 



Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group