getUploads: No “recordNum” been worth specified!

2 posts by 2 authors in: Forums > CMS Builder
Last Post: December 23, 2007   (RSS)

By Djulia - December 23, 2007

Hi,

I have a page: /blogPage.php?Page_2-7

Now, if I move on : /blogPage.php, there is the message :
getUploads: No “recordNum” been worth specified!

It is possible to mask this message ?

I use the model: Blog.

Thank you for your answer.

Djulia

Re: [Djulia] getUploads: No “recordNum” been worth specified!

By Dave - December 23, 2007

Yes, just wrap step3 (the block that displays images) with this:

<?php if ($record): ?>
...
<?php endif ?>


That way if there is no record found it will skip that block and you'll just get the "No record found" error.

We'll add this to the code generator for the next release so it will be done automatically.

Also, keep in mind, you typically wouldn't go to the page viwer "blogPage.php" without specifying a record number. If no record number is specified on the end of the url it will try to load record 1.
Dave Edis - Senior Developer
interactivetools.com