Welcome, Guest
Username Password: Remember me

"No component found" when switching to Standard from Mobile Version.
(1 viewing) (1) Guest
  • Page:
  • 1
  • 2

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

"No component found" when switching to Standard from Mobile Version. 14 years, 8 months ago #1501

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?

"No component found" when switching to Standard from Mobile Version. 14 years, 8 months ago #1502

  • razor7
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
  • Karma: 0
The issue is still there in version 0.9.2

"No component found" when switching to Standard from Mobile Version. 14 years, 8 months ago #1503

  • razor7
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
  • Karma: 0
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!

"No component found" when switching to Standard from Mobile Version. 14 years, 8 months ago #1505

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!

"No component found" when switching to Standard from Mobile Version. 14 years, 8 months ago #1508

Hi razor7,

im wondering if you might can help with my problem: (see www.mobilejoomla.com/forum/topic.html?id=187)

Looking forward to hear from you

Rene

"No component found" when switching to Standard from Mobile Version. 14 years, 8 months ago #1509

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?

"No component found" when switching to Standard from Mobile Version. 14 years, 8 months ago #1510

  • razor7
  • OFFLINE
  • Fresh Boarder
  • Posts: 12
  • Karma: 0
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

"No component found" when switching to Standard from Mobile Version. 14 years, 7 months ago #1538

  • ebvoogdt
  • OFFLINE
  • Fresh Boarder
  • Posts: 1
  • Karma: 0
Same problem here.. no component found, error 404..
  • Page:
  • 1
  • 2
Time to create page: 0.31 seconds

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.