close ad
WARNING: Do Not Install the DREAMWEAVER CC 2017 or 2018 Update »
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

DataAssist image issues

Thread began 12/29/2016 4:59 pm by BPen04141619 | Last modified 1/10/2017 2:04 pm by Ray Borduin | 849 views | 14 replies |

BPen04141619

DataAssist image issues

I am going through the tutorial and uploaded the presets and having problems getting things to work right. I have been working on this for two days now and cannot get the images to show up, and the tutorial doesn't even really touch on it. I am currently starting over again and trying one more time. One question I have before I get into the errors it shows, is that there is a preset detail page you can choose that is a multi-image page. However, when it creates the database it doesn't create any more than a thumbnail and product image. So how are you able to get multi images when you don't have that option on the insert page? I will follow up post here with the errors I get after setting up the pages for another try. I am basically just trying to get something like the boothill automotive example at the bottom of the databridge page that displays examples.

Sign in to reply to this post

Ray BorduinWebAssist

Each image is a different row in the database. Only one is actually uploaded per insert.

If you post the error you are getting I can help you debug it.

Sign in to reply to this post

BPen04141619

I cant even get that far now. I set my form variables to add additional image files and have the details page set, but when trying to remove some of the unneeded items on the insert page it keeps crashing dreamweaver CC 2017. Tried it five or six times. At least it autorecovers some of what I have done. I guess I am going to have to leave it be and then manually remove the items from the created pages afterwards.

Sign in to reply to this post

BPen04141619

image errors

I got the insert page to show up. I had to move one of the helper files up to line one and also had to change all the file links from "virtual" to "require)once" I am not sure why it is creating the pages and putting virtual. But here is the error I am getting about the images. I inputed data into the admin_insert.php file and then it displays this.

Notice: Undefined index: WA_UploadResult1 in /home/sibbalds/public_html/admin/admin_insert.php on line 18

Notice: Undefined index: WA_UploadResult2 in /home/sibbalds/public_html/admin/admin_insert.php on line 18

Notice: Undefined index: WA_UploadResult3 in /home/sibbalds/public_html/admin/admin_insert.php on line 18

Notice: Undefined index: WA_UploadResult4 in /home/sibbalds/public_html/admin/admin_insert.php on line 18

Notice: Undefined index: WA_UploadResult5 in /home/sibbalds/public_html/admin/admin_insert.php on line 18
Table 'sibbalds_main.Products' doesn't exist


I will include the file itself too if that will help.

Sign in to reply to this post

Ray BorduinWebAssist

It is another code order thing. Move lines 39-165 up above line 7. That should correct that error.

The include virtual() instead of require_once() is controlled by your site definition. Change your site settings to use "document relative" instead of "site relative" links and it should start using require_once automatically.

Sign in to reply to this post

BPen04141619

thank you I will make that change.....however, it also appears it is not creating the database table at all even though I had the checkmark for it to create the table.

Sign in to reply to this post

Ray BorduinWebAssist

It can't create the table for you when you use a custom application. You need to define it based on an existing table. This doesn't look like an existing preset.

You need to create the table the first time to save the preset and then it can recreate it after.

Sign in to reply to this post

BPen04141619

Originally Said By: Ray Borduin
  It can't create the table for you when you use a custom application. You need to define it based on an existing table. This doesn't look like an existing preset.

You need to create the table the first time to save the preset and then it can recreate it after.  


I made those changes and have the database created and moved those lines up and get the admin_insert page to display. I put some test data into the insert page and then get the following error:


Warning: Invalid argument supplied for foreach() in /home/sibbalds/public_html/webassist/file_manipulation/helperphp.php on line 93

Warning: Cannot modify header information - headers already sent by (output started at /home/sibbalds/public_html/webassist/file_manipulation/helperphp.php:93) in /home/sibbalds/public_html/admin/admin_insert.php on line 164


It does however enter the data into the database as I viewed the results page and it is there. I also checked the folder on the server and it is uploading the images to the server, but it does not display them anywhere on any of the pages. I will include the file for you to look at, Thanks for all your help with this too.

Sign in to reply to this post

Ray BorduinWebAssist

Some code is still in the wrong order on the insert page. Lines 13-27 should be above line 7.

Remove the blank line in the code on lines 28, 92, and 135 to fix the header error on the insert page.

Copy the <img> tag on line 22 of the detail page and update the column name referenced to display any of the other images you have added.

Sign in to reply to this post

BPen04141619

I am not sure what you meant on that last part. "Copy the <img> tag on line 22 of the detail page and update the column name referenced to display any of the other images you have added" Because line 22 of the admin detail page doesn't seem to be anything to do with the images. Here is line 22

$theValue = ($theValue != "") ? doubleval($theValue) : "NULL";

So I don't get what you mean about that. But the one picture is showing up fine, just not the additional ones I added. While I was waiting for your reply earlier I went ahead and finished the tutorial and added the catalog pages for them displaying on the front end to users, which is where I really need the additional pictures to display on the details page. After I set up the pages and clicked finish for it to begin I received a dreamweaver error and it stops after like 10 seconds in to creating the pages. I have included a screenshot of the error shows up and locks up the data assist box and doesn't complete making the pages.

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...