Posted on: 12/02/05 09:58pm
By: Anonymous (Aerocream)
When creating a event there is no states listed in the Dropdown menu. I have two sperate installations of Geeklog, on two differnt servers and both have this issue. I've checked the config.php and the Array is stated and in proper syntax. Also I have checked the event.php file under admin which seems to be correct. Any help would be apperciated. Thanks!
No States in Events
Posted on: 12/05/05 09:09pm
By: Anonymous (Aerocream)
Bump for some Attention.
No States in Events
Posted on: 12/05/05 10:23pm
By: machinari
What is your Geeklog version? and your theme?
Even better, give us a URL and we can just look at the page.
No States in Events
Posted on: 12/27/05 08:34pm
By: Anonymous (Aerocrem)
www.Aerocream.com, using Geeklog 1.3.11sr3, with the Professional Theme. I've downloaded the newest Full Release of GL and have overwritten the events.php, and totally re-worked my config.php to no avail. Thanks!
No States in Events
Posted on: 12/27/05 08:51pm
By: machinari
just visited your site and I can see the states listed in the dropdown.
maybe refresh your browser cache?
No States in Events
Posted on: 12/29/05 09:20pm
By: Aerocream
Cleared both IE and Firefox, tried a different PC, still no states. Now I did have a PHP.INI file that I renamed to see if anything would break and my Forums did.. I renamed it back and that brought my forums to be where they should but still no states. Would there be something in the INI File? Should I Post it ?
Your Help is greatly appreciated!
No States in Events
Posted on: 12/29/05 10:15pm
By: Anonymous (mach)
PHP version?
No States in Events
Posted on: 12/29/05 11:30pm
By: Aerocream
4.4.1, Also I checked the Source of the events.php as seen through the browser, and I have 51 of these for the states
<option value="--" selected="selected">
No States in Events
Posted on: 12/30/05 01:00am
By: machinari
ensure that your events.php, in the function editevent(), contains this code, especially the last line,
next($_STATES);, :
for ($i = 1; $i <= count($_STATES); $i++) {
$state_options .= '<option value="' . key($_STATES) . '" ';
if (key($_STATES) == $A['state']) {
$state_options .= 'selected="selected"';
}
$state_options .= '>' . current($_STATES) . '</option>';
next($_STATES);
}
if it does, then either your array is messed up in config.php, or your PHP is having trouble with the next() function.
hmmm.. adding a new event, $A['state'] should be empty in which case the text, selected="selected", should never make it into $state_options. vewy stwange.
You mentioned that you have "reworked" your config.php (what does that mean?) and overwritten your events.php file with the latest version, but did you actually do a proper upgrade to your site or just mix and match files and/or parts of files? Also, post your $_STATES array--at least the first 3 or 4 and the last 2 lines of it.
No States in Events
Posted on: 12/30/05 05:39am
By: 1000ideen
When I got to your page and click Submit an Event then I see states. Do you mean you are inside as admin using the left menu?
The most likely thing is that you messed up the config.php could you post the respective part of it?
~~~~
No, just thinking - if it was messed up I couldn`t see them either. The only explanation is that you approach the menu in a different way. Can you try it as anonymous?
No States in Events
Posted on: 12/30/05 10:22am
By: Aerocream
To clarify this is when I try to submit an event as the admin or a user with full admin rights. I see the states when I'm on the site not registered, however when I log in, the states are not visable.
When I said I reworked my config.php, I printed out the current one, deleted it and copied the new blank config from the most current release of geeklog. Also I copied over the events.php from that same release and over written the existing file. The file is http://www.aerocream.com/admin/event.php
Here is a copy of my config.php and the file about events.php
Config.php in TXT[*1]
event.php in TXT[*2]
No States in Events
Posted on: 12/30/05 10:56am
By: 1000ideen
Maybe you just copy over that file again and also /admin/event/eventeditor.thtml
I just checked and had absolutely no probs with that also not in various languages.
No States in Events
Posted on: 12/30/05 12:01pm
By: Aerocream
Copied over the the the event.php, and the entire event folder under the layout. Overwritten all files on the site. Still the same issue.
Copy of PHP.ini in TXT[*3]
No States in Events
Posted on: 12/30/05 12:14pm
By: 1000ideen
If you don`t see the whole dropdown menu ( is there a gap?) it should be in the thtml I suppose.
Last idea: /submit/submitevent.thtml
No States in Events
Posted on: 12/30/05 12:23pm
By: Aerocream
Uploaded the whole submit folder.. Still no change
No States in Events
Posted on: 12/30/05 12:39pm
By: Aerocream
I really Appreciate all the help both you two have given. I don't want to waste anyone else's time on this issue, so what I've done is taken out the For Statement and just set the Variable to the following below..
$state_options = '<select name="state"><option value="--"></option><option value="AL">Alabama</option.....<option value="WY">Wyoming</option></select>'
The states aren't going to change anytime soon, and this just patches this issue for the time being. Happy New Year Everyone!
No States in Events
Posted on: 12/30/05 12:47pm
By: 1000ideen
Well, maybe with the update to 1.4.0 in a few days the problem will have solved. Happy New Year!
No States in Events
Posted on: 12/30/05 01:56pm
By: Dirk
I seem to remember that a certain PHP version had problems with the current / next functions.
In 1.3.11, submit.php uses a foreach loop for the states, while admin/event.php uses current/next. In 1.4.0, they both use foreach ...
Not sure if that really explains anything, though. Geeklog uses current/next in quite a few places, so you should see similar problems elsewhere, too, if it were really related to your PHP version
bye, Dirk
No States in Events
Posted on: 01/05/06 12:25am
By: Anonymous (Phil)
I too have the same issue.
PHP Version = 4.4.1
GL version = 1.3.11sr1
The events submission works fine as a guest user, however, login as a user and you see the first listed state repeated.
Tried submitting an event as a guest, all OK, logged in and approved the event and it saved OK. Go to edit the event and the state issue still there.
Is this a security issue that is upsetting this part of the code?
View site[*4]
I may need to commit and upgrade GL!!!!
BTW: Great product, keep up the great work.
Phillip
No States in Events
Posted on: 01/05/06 03:04pm
By: Dirk
[QUOTE BY= Phil] Is this a security issue that is upsetting this part of the code?[/QUOTE]
No, it's not a security issue, it's a bug in PHP itself.
If this is the bug I mentioned above, then you may want to upgrade to PHP 4.4.2 when it comes out "
at the end of next week[*5] ".
bye, Dirk
No States in Events
Posted on: 01/05/06 04:26pm
By: BlueGumTech
Hi Dirk,
Thanks for the prompt reply.
Regards,
Phillip