Welcome to Geeklog, Anonymous Thursday, November 28 2024 @ 06:48 am EST
Geeklog Forums
No States in Events
Page navigation
Aerocream
Anonymous
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!
22
21
Quote
Aerocream
Anonymous
Bump for some Attention.
25
25
Quote
Status: Banned
machinari
Forum User
Full Member
Registered: 03/22/04
Posts: 1512
What is your Geeklog version? and your theme?
Even better, give us a URL and we can just look at the page.
Even better, give us a URL and we can just look at the page.
26
22
Quote
Aerocrem
Anonymous
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!
25
29
Quote
Status: Banned
machinari
Forum User
Full Member
Registered: 03/22/04
Posts: 1512
just visited your site and I can see the states listed in the dropdown.
maybe refresh your browser cache?
maybe refresh your browser cache?
23
23
Quote
Status: offline
Aerocream
Forum User
Newbie
Registered: 12/29/05
Posts: 10
Location:Naples, FL
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!
http://www.aerocream.com
Your Help is greatly appreciated!
http://www.aerocream.com
30
32
Quote
mach
Anonymous
PHP version?
28
22
Quote
Status: offline
Aerocream
Forum User
Newbie
Registered: 12/29/05
Posts: 10
Location:Naples, FL
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
http://www.aerocream.com
Text Formatted Code
<option value="--" selected="selected">http://www.aerocream.com
30
27
Quote
Status: Banned
machinari
Forum User
Full Member
Registered: 03/22/04
Posts: 1512
ensure that your events.php, in the function editevent(), contains this code, especially the last line, next($_STATES);, :
$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.
Text Formatted Code
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.
23
25
Quote
Status: offline
1000ideen
Forum User
Full Member
Registered: 08/04/03
Posts: 1298
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?
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?
26
22
Quote
Status: offline
Aerocream
Forum User
Newbie
Registered: 12/29/05
Posts: 10
Location:Naples, FL
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
event.php in TXT
http://www.aerocream.com
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
event.php in TXT
http://www.aerocream.com
17
22
Quote
Status: offline
Aerocream
Forum User
Newbie
Registered: 12/29/05
Posts: 10
Location:Naples, FL
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
http://www.aerocream.com
Copy of PHP.ini in TXT
http://www.aerocream.com
24
24
Quote
Status: offline
Aerocream
Forum User
Newbie
Registered: 12/29/05
Posts: 10
Location:Naples, FL
Uploaded the whole submit folder.. Still no change
http://www.aerocream.com
http://www.aerocream.com
18
24
Quote
Status: offline
Aerocream
Forum User
Newbie
Registered: 12/29/05
Posts: 10
Location:Naples, FL
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..
The states aren't going to change anytime soon, and this just patches this issue for the time being. Happy New Year Everyone!
http://www.aerocream.com
Text Formatted Code
$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!
http://www.aerocream.com
18
23
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
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
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
18
22
Quote
Phil
Anonymous
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
I may need to commit and upgrade GL!!!!
BTW: Great product, keep up the great work.
Phillip
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
I may need to commit and upgrade GL!!!!
BTW: Great product, keep up the great work.
Phillip
23
16
Quote
Status: offline
Dirk
Site Admin
Admin
Registered: 01/12/02
Posts: 13073
Location:Stuttgart, Germany
Quote by Phil: Is this a security issue that is upsetting this part of the code?
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".
bye, Dirk
42
24
Quote
Page navigation
All times are EST. The time is now 06:48 am.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content