router.php problem?

Eve
Eve
Offline
0
Notice: Undefined index: format in /home/flower22/public_html/internationalkirtan.com/components/com_muscol/router.php on line 10

I recently installed this component and am getting this error message. I checked to make sure all of your plugins were enabled and it should be working fine.

I also disabled error reporting in my global configuration which also didn't work.

when I check lines 10-13 in the router.php file
if ( isset( $query['view'] ) && $query['format'] != "feed" && $query['format'] != "raw" && $query['format'] != "ownpdf" && $query['layout'] != "form") {

$view = strtolower( $query['view'] );
$segments[] = $task;

I don't know what the problem is.

Also... I don't know where the php ini file is located on my server... Im not sure that I have one.

I attached a screenshot of the error messages... and this was supposed to be the main music collection page.

Also, this is working on Joomla 1.7
Responses (28)
  • Accepted Answer

    Eve
    Eve
    Offline
    Sunday, August 07 2011, 05:38 PM - #Permalink
    0
    I just tried to enable to recently added artist module and the recently added albums module and now... when I load my homepage... it comes back as a blank page with this text...
    Fatal error: Using $this when not in object context in /home/flower22/public_html/internationalkirtan.com/modules/mod_muscol_recently_added_artists/helper.php on line 16

    when I installed this on Joomla 1.5 I had not nearly as many problems... now I'm having a lot of problems with joomla 1.7 and am unsure how to troubleshoot these problems. Is there any solution?

    I already tried uninstalling the component and reinstalling that...

    everything else was a fresh install and I enabled all of the plugins so it should work fine...
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, August 07 2011, 06:04 PM - #Permalink
    0
    hello!

    about the NOTICE: don't worry about it.. you should only disable error reporting or decrease its level...

    about the fatal error: I just found that out, too. some modules are giving some problems on Joomla 1.7... they changed a lot of code and now some properties cannot be accessed. I'm already preparing a minor update to solve this, which should come out this week hopefully.

    you'll have to wait a couple days, sorry...!

    meanwhile please DO NOT use the modules on Joomla 1.7 (but I believe there's no problem with the component... right?)

    Germi
    The reply is currently minimized Show
  • Accepted Answer

    Eve
    Eve
    Offline
    Sunday, August 07 2011, 06:27 PM - #Permalink
    0
    Well, luckily my site will be offline until it's launched.... I thought I'd get all of the joomla 1.7 upgrades done... and it's been hoorrriiblllee. Every component has errors, lots of bugs...

    and, the music collection "homepage" component does error with an

    Notice: Undefined index: format in /home/flower22/public_html/internationalkirtan.com/components/com_muscol/router.php on line 10
    and
    Notice: Undefined variable: task in /home/flower22/public_html/internationalkirtan.com/components/com_muscol/router.php on line 13


    Not only does it error like this... but even if I disable error reporting in my global configuration the errors still appear. So I'm really stuck.

    And the modules error the entire pages if I enable them.

    Joomla 1.7 takes a lot of little improvements apparently. :c)

    Don't worry! Music collection isn't the only one!
    The reply is currently minimized Show
  • Accepted Answer

    Mike
    Mike
    Offline
    Saturday, September 10 2011, 12:53 AM - #Permalink
    0
    I am having the same exact problem on my brand new download. smh. I was scheduled to launch to the public this weekend. Hopefully you guys take this seriously and get it solved quickly.
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, September 10 2011, 03:51 PM - #Permalink
    0
    I'm current using Joomla 1.7 with the MusCol Component and I haven't ran into any of those problems that your complaining about. Is there a way I could view your site and maybe help you out with this problem.
    The reply is currently minimized Show
  • Accepted Answer

    Mike
    Mike
    Offline
    Sunday, September 11 2011, 08:40 AM - #Permalink
    0
    What I found out last night is that the problem comes up when you have the Search Engine Friendly Urls option set to YES.

    I am no coder so I have have no clue how to fix that. But it is VERY important to my website that my URLs be as short and to the point as possible. This made me deactivate the component until a solution is found.
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, September 11 2011, 10:21 AM - #Permalink
    0
    hello!

    you are having the problem with the NOTICES?

    notices need to be disabled (decreasing error reporting level, on joomla config or php.ini file)

    about the problem with some modules on 1.7, most of them were solved but I believe there is a couple modules that still have the problem. I'm going to check it

    do you have problems with any module?
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, September 11 2011, 10:28 AM - #Permalink
    0
    UPDATE: the module RECENTLY ADDED ARTISTS for Joomla 1.6 and 1.7 has been updated
    The reply is currently minimized Show
  • Accepted Answer

    Mike
    Mike
    Offline
    Sunday, September 11 2011, 05:31 PM - #Permalink
    0
    I tried all of that. Here is a quote from the technical team at my web host

    ": Alright. That error is not being caused due to the php.ini, but due to the coding. This line - if ( isset( $query['view'] - does not have a function defined for it, and has no include file defining it either. "
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, September 11 2011, 07:55 PM - #Permalink
    0
    :) there's nothing wrong with the code. YES, the code uses an undefined variable (that's the "error" you see, which is not an error, it's just a NOTICE!)

    I never said the php.ini caused the error!!! all I said is that these notices (that are just information for developers) can be switched off on the php.ini file, because in that file is where the error reporting level is set!

    so it has to have this line:

    ERROR_REPORTING = E_ERROR

    that's all!

    can you try that? or tell your technical team to do it. tell them you want to DECREASE the error reporting level, which is too high!

    do you know what I mean?
    The reply is currently minimized Show
  • Accepted Answer

    Mike
    Mike
    Offline
    Sunday, September 11 2011, 10:38 PM - #Permalink
    0
    i will give it a try and let you know but i had already had all error reporting turned off and it didn't fix it. i'll give them that specific line and see what it does.
    The reply is currently minimized Show
  • Accepted Answer

    Eve
    Eve
    Offline
    Thursday, September 22 2011, 11:58 PM - #Permalink
    0
    Since your last post, I decided to install the updates and try to get my website to work. I'm hoping to launch my site in the next month or so.

    Unfortunately, the music collection modules do not work on my site at all... I turned off error reporting.. and not one of the modules work. Not even with the updates you made 8/31 and 9/01 that I found in the downloads area.

    Not sure what to do... I'll try contacting my web host, but I'm not sure if there is anything they will be able to do.

    I'm super bummed it does work on Joomla 1.7 because I spent money to upgrade, and don't want to launch my site on Joomla 1.5... Music Collection works perfectly on 1.5!

    Let me know if you want my URL, and see if you can help troubleshoot at all.
    The reply is currently minimized Show
  • Accepted Answer

    Eve
    Eve
    Offline
    Thursday, September 22 2011, 11:58 PM - #Permalink
    0
    Since your last post, I decided to install the updates and try to get my website to work. I'm hoping to launch my site in the next month or so.

    Unfortunately, the music collection modules do not work on my site at all... I turned off error reporting.. and not one of the modules work. Not even with the updates you made 8/31 and 9/01 that I found in the downloads area.

    Not sure what to do... I'll try contacting my web host, but I'm not sure if there is anything they will be able to do.

    I'm super bummed it does work on Joomla 1.7 because I spent money to upgrade, and don't want to launch my site on Joomla 1.5... Music Collection works perfectly on 1.5!

    Let me know if you want my URL, and see if you can help troubleshoot at all.
    The reply is currently minimized Show
  • Accepted Answer

    Friday, September 23 2011, 10:16 AM - #Permalink
    0
    it should work just as well in 1.7...!!
    please send me access to your site and I'll take a look!
    The reply is currently minimized Show
  • Accepted Answer

    Eve
    Eve
    Offline
    Tuesday, October 04 2011, 03:30 AM - #Permalink
    0
    Okay great, because I'm getting no resolve disabling the error reporting in the php.ini and changing the .htaccess blah blah

    anyway... make sure no one else can see this info...

    none of that worked.

    internationalkirtan.com
    username: admin
    password: secret

    internationalkirtan.com/administrator
    same username and password.
    The reply is currently minimized Show
  • Accepted Answer

    Tuesday, October 04 2011, 10:29 AM - #Permalink
    0
    try to put this:

    error_reporting(E_ERROR);
    ini_set('error_reporting', E_ERROR);

    on the file /components/com_muscol/router.php line 4
    The reply is currently minimized Show
  • Accepted Answer

    rudy
    rudy
    Offline
    Thursday, November 03 2011, 05:29 PM - #Permalink
    0
    Hello,
    I 've same router error :

    exemple : Notice: Undefined index: layout in /homez.9/.../www/components/com_muscol/router.php on line 10
    Notice: Undefined variable: task in /homez.9/.../www/components/com_muscol/router.php on line 13

    my Short open tag is on
    i disable my reportings error on joomla

    Germi, do u have any solution?

    rudy
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, November 03 2011, 05:31 PM - #Permalink
    0
    a quick solution: can you do what is said above?

    error_reporting(E_ERROR);
    ini_set('error_reporting', E_ERROR);

    on the file /components/com_muscol/router.php line 4

    I'll update our official release, anyway.
    The reply is currently minimized Show
  • Accepted Answer

    rudy
    rudy
    Offline
    Thursday, November 03 2011, 05:36 PM - #Permalink
    0
    Thks For you quickly answer

    I try this solution too
    but i ve the same error
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, November 03 2011, 05:38 PM - #Permalink
    0
    ?? really? very weird... is it possible that you have some cache enabled on your site?

    do you speak Spanish? :)
    The reply is currently minimized Show
  • Accepted Answer

    rudy
    rudy
    Offline
    Thursday, November 03 2011, 05:39 PM - #Permalink
    0
    No I'am French
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, November 03 2011, 05:40 PM - #Permalink
    0
    ah ok sorry ;) for the usename I thought you were Spanish.
    The reply is currently minimized Show
  • Accepted Answer

    rudy
    rudy
    Offline
    Thursday, November 03 2011, 05:45 PM - #Permalink
    0
    OK, you're not the first :)

    DO you need some other information?
    my website adress: http://www.be-gospel.com/musique
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, November 05 2011, 02:33 PM - #Permalink
    0
    well I would need FTP access if you want me to try to fix this..

    can you send it to joomlamusicsolutions@gmail.com?

    however, I don't see the notice problems if I go to you site! :)
    The reply is currently minimized Show
  • Accepted Answer

    Friday, November 11 2011, 04:55 PM - #Permalink
    0
    Guys is there a solution to this problem, I tried all the solutions listed which did not resolve the problem
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, November 12 2011, 10:15 AM - #Permalink
    0
    helo,
    the solution should be really very simple... again, if you want to give me FTP access I'll try it myself and try to work it out!
    The reply is currently minimized Show
  • Accepted Answer

    rudy
    rudy
    Offline
    Saturday, November 12 2011, 10:46 AM - #Permalink
    0
    Hello,

    I used the Gavick Musicity Temmplate.
    When i changed this template with another one, the problem is solved

    thank you GERMI
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, November 12 2011, 05:20 PM - #Permalink
    0
    Guys I got it to work with the Music Template. You need to make sure you put

    error_reporting(E_ERROR);
    ini_set('error_reporting', E_ERROR);

    in the right place of the router.php file

    ACTUAL CODE in ROUTER.PHP

    function muscolBuildRoute( &$query ) {

    error_reporting(E_ERROR);
    ini_set('error_reporting', E_ERROR);

    $segments


    Thanks Germi & Rudy for your assistance
    The reply is currently minimized Show
Your Reply