Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
If you've enabled the station_schedule module, it should be in your menu under station/schedule. if you enable Drupal's menu module it will let you move the menu item to a different location.
For some reason I get this error when trying to view my schedule:
* warning: Invalid argument supplied for foreach() in /home/uberg/public_html/radio/modules/station/schedule/station_schedule.module on line 975.
* warning: Invalid argument supplied for foreach() in /home/uberg/public_html/radio/modules/station/schedule/station_schedule.module on line 975.
Also, my "station" page is completely empty and nothing loads up on it. What is the station page? Is there a way that I can not have it display in the menu since it doesnt have anything on it?
Thanks for your help! Been working really hard to get my new website up, just a bit different going from Joomla to Drupal :)
For some reason I get this error when trying to view my schedule:
* warning: Invalid argument supplied for foreach() in /home/uberg/public_html/radio/modules/station/schedule/station_schedule.module on line 975.
* warning: Invalid argument supplied for foreach() in /home/uberg/public_html/radio/modules/station/schedule/station_schedule.module on line 975.
Also, my "station" page is completely empty and nothing loads up on it. What is the station page? Is there a way that I can not have it display in the menu since it doesnt have anything on it?
Thanks for your help! Been working really hard to get my new website up, just a bit different going from Joomla to Drupal :)
I had another question, is there a way to make the distance between each tab in the schedule smaller? Right now I have my theme set to fixed width but the schedule is bleeding into my right menu. Can I fix this?
The blank page was due to a change in the way the views module generates menus. It was breaking the code for the /station page. I've committed a fix for that.
qforq, adjusting the width between the tabs is a theming issue. I can't really help with that.
the error: * warning: Invalid argument supplied for foreach() in /home/uberg/public_html/radio/modules/station/schedule/station_schedule.module on line 975. seems like it's a problem with the archive links. are you using the archive module? if not disable it and it should remove the errors.
This still didn't fix the /station page. I have updated the module files and have verified that views.defaults is @ 1.4.2.2. Do I need to refresh the views somehow?
Okay....well since Station is completely blank is there some way that I can not display it at all?
And I'm sorry man, but I have a hard time believing that the Schedule's tab spacing is determined in my theme. There isn't anything in your code that sets the tab spacing to 5px or something? It wastes a ton of space for no reason at all: http://www.uberguilds.org/radio/station/schedule
The tab spacing is definitely not in the station module or in your theme. The tab style sheeting comes from system.css I believe. If you are using firefox, download the firebug extension and use the inspector to highlight the tabs. Because of how Drupal loads the .css files, all you will need to do is to override the css element in your theme since your .css files load after the system files. If you want to disable the system stylesheets all together, check this thread.
mattrock, yeah i only updated the default views. you might need to goto /admin/build/views to have it refresh it's cache. though if you changed the default views you'll probably have to make the changes by hand.
qforq, i'm pretty familiar with the station module's code so i can say with some certainty that the tabs are formatted by your theme. if you need help with that go ask about theming in the forums.
also i already described how you can use the /admin/build/menu form to modify your menus.
please try and read my replies carefully. i've got a finite amount of drupal time in the day and re-answering support questions isn't the way i like spending it.
Also, with respect to hiding the station page, all you need to do is to disable the "station" menu item in the admin/build/menu configuration. This will have the side effect, however, of bringing all of the sub-menu items to the top level. You can always override any default menu items which modules create by disabling and building a new item from scratch.
qford, it uses the site's default time zone (there's a setting for that under admin/settings/date-time). at this point the module doesn't support multiple. there was some discussion of it on this issue: http://drupal.org/node/90860
Comments
Comment #1
drewish commentedIf you've enabled the station_schedule module, it should be in your menu under station/schedule. if you enable Drupal's menu module it will let you move the menu item to a different location.
Comment #2
qforq commentedFor some reason I get this error when trying to view my schedule:
* warning: Invalid argument supplied for foreach() in /home/uberg/public_html/radio/modules/station/schedule/station_schedule.module on line 975.
* warning: Invalid argument supplied for foreach() in /home/uberg/public_html/radio/modules/station/schedule/station_schedule.module on line 975.
Also, my "station" page is completely empty and nothing loads up on it. What is the station page? Is there a way that I can not have it display in the menu since it doesnt have anything on it?
Thanks for your help! Been working really hard to get my new website up, just a bit different going from Joomla to Drupal :)
Comment #3
qforq commentedFor some reason I get this error when trying to view my schedule:
* warning: Invalid argument supplied for foreach() in /home/uberg/public_html/radio/modules/station/schedule/station_schedule.module on line 975.
* warning: Invalid argument supplied for foreach() in /home/uberg/public_html/radio/modules/station/schedule/station_schedule.module on line 975.
Also, my "station" page is completely empty and nothing loads up on it. What is the station page? Is there a way that I can not have it display in the menu since it doesnt have anything on it?
Thanks for your help! Been working really hard to get my new website up, just a bit different going from Joomla to Drupal :)
Comment #4
qforq commentedSorry for the double post :O
I had another question, is there a way to make the distance between each tab in the schedule smaller? Right now I have my theme set to fixed width but the schedule is bleeding into my right menu. Can I fix this?
Comment #5
mattrock commentedI also get a completely blank page at url /station. [http://wsum.net/station/]
Comment #6
drewish commentedThe blank page was due to a change in the way the views module generates menus. It was breaking the code for the /station page. I've committed a fix for that.
qforq, adjusting the width between the tabs is a theming issue. I can't really help with that.
Comment #7
drewish commentedthe error:
* warning: Invalid argument supplied for foreach() in /home/uberg/public_html/radio/modules/station/schedule/station_schedule.module on line 975.seems like it's a problem with the archive links. are you using the archive module? if not disable it and it should remove the errors.Comment #8
mattrock commentedThis still didn't fix the /station page. I have updated the module files and have verified that views.defaults is @ 1.4.2.2. Do I need to refresh the views somehow?
Comment #9
qforq commentedOkay....well since Station is completely blank is there some way that I can not display it at all?
And I'm sorry man, but I have a hard time believing that the Schedule's tab spacing is determined in my theme. There isn't anything in your code that sets the tab spacing to 5px or something? It wastes a ton of space for no reason at all:
http://www.uberguilds.org/radio/station/schedule
Thanks
Comment #10
mattrock commentedThe tab spacing is definitely not in the station module or in your theme. The tab style sheeting comes from system.css I believe. If you are using firefox, download the firebug extension and use the inspector to highlight the tabs. Because of how Drupal loads the .css files, all you will need to do is to override the css element in your theme since your .css files load after the system files. If you want to disable the system stylesheets all together, check this thread.
Comment #11
drewish commentedmattrock, yeah i only updated the default views. you might need to goto /admin/build/views to have it refresh it's cache. though if you changed the default views you'll probably have to make the changes by hand.
qforq, i'm pretty familiar with the station module's code so i can say with some certainty that the tabs are formatted by your theme. if you need help with that go ask about theming in the forums.
also i already described how you can use the /admin/build/menu form to modify your menus.
please try and read my replies carefully. i've got a finite amount of drupal time in the day and re-answering support questions isn't the way i like spending it.
Comment #12
mattrock commentedAlso, with respect to hiding the station page, all you need to do is to disable the "station" menu item in the admin/build/menu configuration. This will have the side effect, however, of bringing all of the sub-menu items to the top level. You can always override any default menu items which modules create by disabling and building a new item from scratch.
Comment #13
drewish commentedit looks like we cross posted.
Comment #14
qforq commentedAlright thanks guys, I appreciate the time and patience helping me get used to this module(and I'm learning drupal at the same time).
I have one last question, is there a way to specify the time zone that your schedule is in?
Comment #15
drewish commentedqford, it uses the site's default time zone (there's a setting for that under admin/settings/date-time). at this point the module doesn't support multiple. there was some discussion of it on this issue: http://drupal.org/node/90860
Comment #16
qforq commentedAck I have a new problem all of a sudden.
When trying to put in a new program I get this:
"Validation error, please try again. If this error persists, please contact the site administrator."
Is there a reason that this is occuring?
Comment #17
qforq commentedNever mind, fixed it !
Thanks Drewish for your work on this project. I appreciate the work that you're doing for sure, it's definitely made things a lot easier on me.
Comment #18
(not verified) commented