 | |  |
 |

justritedesign
User
Apr 17, 2008, 3:33 PM
Post #1 of 5
(235 views)
Shortcut
|
|
Upgrade errors
|
Can't Post
|
|
Can you look at http://www.efreewillmar.org and see what the problem with the two errors that are now showing on the page after I upgraded to the newest version. Code for the first area:
<?php require_once "C:/Webspace/resadmin/mmoyers/efreewillmar.org/www/cmsAdmin/lib/viewer_functions.php"; $options = array(); // NOTE: see online documentation for more details on these options $options['tableName'] = 'blog_001'; // (REQUIRED) MySQL tablename to list record from. Example: "article"; $options['recordNum'] = ''; // (optional) Record number to display. Example: "1"; Defaults to number on end of url, then 1 $options['where'] = ''; // (ADVANCED) MySQL WHERE conditions to use INSTEAD of recordNum to look up record. Example: "fieldname = 'value'" $record = getRecord($options); ?> <?php if ($record): ?> <span class="style11"><?php echo $record['title'] ?></span><br/> <span class="style7"><?php echo $record['content'] ?></span><br/> <a href="<?php echo $record['external_link'] ?>" target="_self" class="style7">More Information</a> <?php endif ?> Hopefully that gives you an idea of what maybe the problem and maybe then I can correct both errors on that page. Thanks for your help, Michael Moyers Owner/Administrator Just Rite Design & Just Rite Productions A growing network of professionals in Web development, Programming, Graphic Design, Flash, and Audio and Video Productions
|
|
|  |
 |

Dave
Staff
/ Moderator

Apr 17, 2008, 4:28 PM
Post #2 of 5
(233 views)
Shortcut
|
|
Re: [justritedesign] Upgrade errors
[In reply to]
|
Can't Post
|
|
Hi Michael, Can you email me login info for CMS and FTP to dave@interactivetools.com. I can get in there right away and see what the problem is. Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

Dave
Staff
/ Moderator

Apr 17, 2008, 5:05 PM
Post #3 of 5
(232 views)
Shortcut
|
|
Re: [justritedesign] Upgrade errors
[In reply to]
|
Can't Post
|
|
Just a follow up on this, make sure the 'hidden' field for that section is unchecked and the Publish On Date, and Expires On Date fields (if you have them) aren't set to hide the record either. Dave Edis - Senior Developer interactivetools.com
|
|
|  |
 |

justritedesign
User
Apr 17, 2008, 5:30 PM
Post #4 of 5
(229 views)
Shortcut
|
Email is on the way. Thanks for looking at this for me. Michael Moyers Owner/Administrator Just Rite Design & Just Rite Productions A growing network of professionals in Web development, Programming, Graphic Design, Flash, and Audio and Video Productions
|
|
|  |
 |

Dave
Staff
/ Moderator

Apr 18, 2008, 8:39 AM
Post #5 of 5
(211 views)
Shortcut
|
|
Re: [justritedesign] Upgrade errors
[In reply to]
|
Can't Post
|
|
So just a heads up for anyone following this thread. Looks like this is a bug in v1.13. If you have a single record menu it always defines $record in the viewer (actually it always defines $record[_link] only) and that causes code like this to always show, even if none of the fields are defined: <?php if ($record): ?> ... <?php endif ?> I sent justritedesign a patch and I'm going to release v1.14 with a patch shortly. Dave Edis - Senior Developer interactivetools.com
|
|
|  |
|