"No component found" when switching to Standard from Mobile Version.

bytemuncher
15 years, 1 month ago
I have this issue on 0.9.2 as well. Currently testing in dev environment. There is no way I can go live in production with this issue, definitely a showstopper for me. Any ETA on when this will be resolved...or any ideas for a workaround?
razor7
15 years, 1 month ago
The issue is still there in version 0.9.2
razor7
15 years, 1 month ago
Found a workaround!, the issue is because there is no value in the $base variable of mod_mj_markupchooser.php

Change line 21 from this
$base = $config['desktop_url']

to this
$base = $config['desktop_url'].JURI::base(); 

and also line 27 from this
$base = $MobileJoomla->config['desktop_url']

to this
$base = $MobileJoomla->config['desktop_url'].JURI::base(); 


I have attached the corrected file
mod-mj-markupchooser.zip

For The Developers Only
I think the error raises because the $base variable is assigned to $MobileJoomla->config['desktop_url'] but there is no desktop_url variable in config.php configuration file.

Thats what my config.php file looks like
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
 
$MobileJoomla_Settings=array(
'version'=>'0.9.2',
'useragent'=>2,
'domains'=>0,
'pcpage'=>'',
'templatewidth'=>800,
'jpegquality'=>90,
'xhtmltemplate'=>'mobile_pda',
'xhtmlhomepage'=>'',
'xhtmlgzip'=>0,
'xhtmldomain'=>'pda.',
'xhtmlredirect'=>0,
'waptemplate'=>'mobile_wap',
'waphomepage'=>'',
'wapgzip'=>0,
'wapdomain'=>'wap.',
'wapredirect'=>0,
'imodetemplate'=>'mobile_imode',
'imodehomepage'=>'',
'imodegzip'=>0,
'imodedomain'=>'imode.',
'imoderedirect'=>0,
'iphonetemplate'=>'mobile_iphone',
'iphonehomepage'=>'',
'iphonegzip'=>1,
'iphonedomain'=>'iphone.',
'iphoneredirect'=>0,
'tmpl_xhtml_header1'=>'mj_pda_header',
'tmpl_xhtml_header2'=>'mj_pda_header2',
'tmpl_xhtml_pathway'=>1,
'tmpl_xhtml_pathwayhome'=>0,
'tmpl_xhtml_middle1'=>'mj_pda_middle',
'tmpl_xhtml_middle2'=>'mj_pda_middle2',
'tmpl_xhtml_componenthome'=>1,
'tmpl_xhtml_footer1'=>'mj_pda_footer',
'tmpl_xhtml_footer2'=>'mj_pda_footer2',
'tmpl_xhtml_jfooter'=>1,
'tmpl_xhtml_simplehead'=>0,
'tmpl_xhtml_allowextedit'=>0,
'tmpl_xhtml_removetags'=>1,
'tmpl_xhtml_removescripts'=>0,
'tmpl_xhtml_img'=>2,
'tmpl_xhtml_entitydecode'=>0,
'tmpl_xhtml_embedcss'=>0,
'tmpl_xhtml_contenttype'=>3,
'tmpl_xhtml_xmlhead'=>0,
'tmpl_xhtml_doctype'=>2,
'tmpl_xhtml_xmlns'=>1,
'tmpl_wap_header'=>'mj_wap_header',
'tmpl_wap_pathway'=>1,
'tmpl_wap_pathwayhome'=>0,
'tmpl_wap_middle'=>'mj_wap_middle',
'tmpl_wap_componenthome'=>1,
'tmpl_wap_footer'=>'mj_wap_footer',
'tmpl_wap_cards'=>'mj_wap_cards',
'tmpl_wap_jfooter'=>1,
'tmpl_wap_removetags'=>1,
'tmpl_wap_img'=>1,
'tmpl_wap_entitydecode'=>1,
'tmpl_wap_doctype'=>1,
'tmpl_imode_header1'=>'mj_imode_header',
'tmpl_imode_header2'=>'mj_imode_header2',
'tmpl_imode_pathway'=>1,
'tmpl_imode_pathwayhome'=>0,
'tmpl_imode_middle1'=>'mj_imode_middle',
'tmpl_imode_middle2'=>'mj_imode_middle2',
'tmpl_imode_componenthome'=>1,
'tmpl_imode_footer1'=>'mj_imode_footer',
'tmpl_imode_footer2'=>'mj_imode_footer2',
'tmpl_imode_jfooter'=>1,
'tmpl_imode_removetags'=>1,
'tmpl_imode_img'=>2,
'tmpl_imode_entitydecode'=>0,
'tmpl_imode_doctype'=>1,
'tmpl_iphone_header1'=>'mj_iphone_header',
'tmpl_iphone_header2'=>'mj_pda_header ',
'tmpl_iphone_pathway'=>0,
'tmpl_iphone_pathwayhome'=>0,
'tmpl_iphone_middle1'=>'mj_iphone_middle',
'tmpl_iphone_middle2'=>'mj_iphone_middle2',
'tmpl_iphone_componenthome'=>0,
'tmpl_iphone_footer1'=>'mj_iphone_footer',
'tmpl_iphone_footer2'=>'mj_iphone_footer2',
'tmpl_iphone_jfooter'=>0,
'tmpl_iphone_img'=>2,
'xhtml_buffer_width'=>20,
'wml_buffer_width'=>10,
'iphone_buffer_width'=>40,
'chtml_buffer_width'=>20,
'tmpl_iphone_removetags'=>0
);
?>


Best regards!
bytemuncher
15 years, 1 month ago
razor7,

Wow! I just replaced the file with the one you attached and now it's working. I can also confirm that the option link in the footer to switch back to the mobile version also works...so switching to standard back to mobile works fine. Great work!
Di Domenicantonio
15 years, 1 month ago
Hi razor7, it's ok now, Thanks a lot, but i cannot find the option to switch back to mobile version. Can you help me, please?
razor7
15 years, 1 month ago
Di wrote:
Hi razor7, it's ok now, Thanks a lot, but i cannot find the option to switch back to mobile version. Can you help me, please?


Hi...you have to tune up the config of your mod_mj_markupchooser or something like that
ebvoogdt
15 years, 1 month ago
Same problem here.. no component found, error 404..
2

By continuing to use this site you consent to the use of cookies on your device as described in our cookie policy unless you have disabled them. This site will not function correctly without cookies.

I accept cookies from this site.