close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Undefined variable in repeat selection

Thread began 10/24/2018 5:27 am by Jonas | Last modified 11/14/2018 10:48 pm by Ray Borduin | 340 views | 18 replies |

Jonas

Undefined variable in repeat selection

I've gone through your tutorial "Create a multiple record insert form", but get an error immediately after insert repeat selection. The error message is "Notice: Undefined variable: Inga in / Applications / MAMP / htdocs / multipleRecord / webassist / sample_form_1.php on line 19
Fatal error: Uncaught Error: Call to a member function atEnd () on null in /Applications/MAMP/htdocs/multipleRecord/webassist/sample_form_1.php:19 Stacktrace: # 0 {main} thrown in / Applications / MAMP / htdocs / multiplerecord / webassist / sample_form_1.php on line 19

Note the variable name Inga which for some reason has been translated into Swedish instead of None I guess. Inga is also available in the menu.

It was a while since I was working with WebAssist. But I remember that this was a problem even then. Alternative content still does not work. I remember reading that you added this to your "to do list". But it does not seem like this server behavior has been updated in DA V2 which I'm updating now !?

Here are lines 19 to 22 by the way:
while (! $Inga-> atEnd () && $ wa_repeatfor! = 0) {
  $ Wa_repeatfor--;
  $ Wa_repeatcount ++;
  if (! $Inga-> atEnd ()) {

Sign in to reply to this post

Ray BorduinWebAssist

The code is probably keying off the word "none" and since it was translated into spanish it thinks you have selected a recordset. I'll have to debug this to figure out what went wrong and how to fix it.

For now you can manually update the code to:

php:
<?php

$wa_repeatfor 
3// Repeat Selection 1
$wa_repeatcount 0;
while (
$wa_repeatfor) {
  
$wa_repeatfor--;
  
$wa_repeatcount++;
?>
your repeated html
<?php
// End Repeat Selection 1
?>
Sign in to reply to this post

Jonas

More problem

I dont think this matter but im in Sweden and I use the swedish version of Dreamweaver.

Now I have done as you said and repeat selection seems to be right now.

The next step in the tutorial is to insert multiple records. But here I get a new error: "Parse error: syntax error, unexpected" ", expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING) in / Applications / MAMP / htdocs / multipleRecord / webassist /sample_form_1.php on line 16 ".

It does not seem that this server behavior works either? When I press this to update it, I get the following error message: "It's apears that one of your server-side values is incorrectly coded. Please check this interface for inconsistencies." And then it will be even worse if I continue.

Sign in to reply to this post

Ray BorduinWebAssist

I just uploaded an update to the extension that should address this issue. You will just need to reinstall the extension.

This issue is related to the foreign language version of Dreameweaver. Unfortunately I am not able to test in all language versions, so there is a distinct possibility that you will run into more issues like this. Please let me know if you do and I can attempt to fix them as they are reported. You may want to use the english DW version if possible in order to avoid this inconvenience.

Sign in to reply to this post

Jonas

Is this still version 2.3.1?

Another thing that does not matter with this. Can you choose to get on mobile (SMS) when someone answers one's comments on the forum?

Sign in to reply to this post

Ray BorduinWebAssist

Yes, just reinstall version 2.3.1

We don't have an SMS alert option on the forums currently.

Sign in to reply to this post

Ray BorduinWebAssist

Please reply in a new post rather that updating the old one... it is hard to follow and I nearly missed that you needed a reply.

It does appear that the multiple insert is not putting the correct number of double quotes in the code. That is causing the problem live as well as when inspecting with the server behavior.

I'll take a look at that now and try to get an update. If you attach a copy of the page you are working on, I can show you what lines and code to update here in the meantime.... I may not have an update of the extension out until tomorrow since it is getting late in the day.

Sign in to reply to this post

Jonas

I know it was a little wrong with the order in my comments.

Sign in to reply to this post

Ray BorduinWebAssist

I'm working on the multiple insert server behavior now. I found in my testing that some things weren't working properly. I'll do a full version release once I'm done. Full version releases take a lot more time, so I only tend to do them when a significant bug or feature is addressed.

Sign in to reply to this post

Jonas

Auch, I shouldt write the last komment

Sign in to reply to this post
loading

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...