Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Show Pictures

Ion2
Posts: 41
Joined: Mon Jan 18, 2016 3:01 pm

Re: Show Pictures

Unread post by Ion2 »

marius wrote:
ywauto wrote:
tried the new code with no luck......
Please check in phpmyadmin if the blob that you uploaded is empty or not. The above modification should fix the update of the blob in the db.
Before the modification the file path was something like "/tmpmyfile.png". After the modification the new file path is "/tmp/myfile.png".
The blob is working. The image is written to the data base. I still have the issue with SHOW as previously described.

Greetings,
Timo
ywauto
Posts: 4
Joined: Tue Jun 07, 2016 5:00 am

Re: Show Pictures

Unread post by ywauto »

marius wrote: After the modification the new file path is "/tmp/myfile.png".
I didn't see file path in mysql. where did you find it?
ywauto
Posts: 4
Joined: Tue Jun 07, 2016 5:00 am

Re: Show Pictures

Unread post by ywauto »

marius wrote:
ywauto wrote:
tried the new code with no luck......
Please check in phpmyadmin if the blob that you uploaded is empty or not. The above modification should fix the update of the blob in the db.
Before the modification the file path was something like "/tmpmyfile.png". After the modification the new file path is "/tmp/myfile.png".
I didn't see file path in mysql. Where did you find it?
marius
Posts: 4
Joined: Wed Jun 15, 2016 2:08 pm

Re: Show Pictures

Unread post by marius »

ywauto wrote: I didn't see file path in mysql. Where did you find it?
Try with this version of the live demo. The file upload should work.

Greetings,
Marius.
You do not have the required permissions to view the files attached to this post.
Ion2
Posts: 41
Joined: Mon Jan 18, 2016 3:01 pm

Re: Show Pictures

Unread post by Ion2 »

Dear Marius,

thank you so much for your help! Sadly it has no effect:
STPLG_with_new_Marius_livedemo.png
Greetings,
Timo
You do not have the required permissions to view the files attached to this post.
Ion2
Posts: 41
Joined: Mon Jan 18, 2016 3:01 pm

Re: Show Pictures

Unread post by Ion2 »

On Safe I'll get a "Requested JSON parse failed" and the database looks like that afterwards:
blob_0B.png
Note: BLOB size is 0 B. See last row.

This is less than in my live system. Here your code leads to an error free BLOB-upload:
life_system.png
Only the SHOW-function seems not to work here.

Hope you can help!

Timo
You do not have the required permissions to view the files attached to this post.
admin
Site Admin
Posts: 2797
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 21 times

Re: Show Pictures

Unread post by admin »

Ion2,

Does the show function work in the livedemo download?

Steven
Ion2
Posts: 41
Joined: Mon Jan 18, 2016 3:01 pm

Re: Show Pictures

Unread post by Ion2 »

Hi Steven,

no, always it looks like the second picture in this post: http://forums.nubuilder.cloud/viewtopic.p ... 947#p14490

It did not work with the original livedemo, not with your upload here (http://forums.nubuilder.cloud/viewtopic.p ... 947#p14543) and not with the upload provided by Marius here (http://forums.nubuilder.cloud/viewtopic.p ... =10#p14565).

The error messages are always the same:

The iFrame "uloadpic" shows: "Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\nubuilder\nucommon.php on line 1101"
The iFrame "showpic" shows: "Warning: Invalid argument supplied for foreach() in C:\xampp\htdocs\nubuilder\nucommon.php on line 1101"

I checked the line 1101 in nucommon.php:

Code: Select all

1093 function nuBuildHashData($J, $T){
1094
1095    $hash               = array();
1096    $ignore             = array();
1097    $ignore[]           = 'sre_layout';
1098    $ignore[]           = 'form_data';
1099    $ignore[]           = 'slp_php';
1100    
1101    foreach($J as $key => $v){                                           //-- add current hash variables
1102        
1103        if(!in_array($key, $ignore)){
1104            $hash['' . $key . '']     = $v;
1105        }
1106        
1107    }
It does not give me any hint. I hope you got the clue! Any ideas?

Thx, Timo
marius
Posts: 4
Joined: Wed Jun 15, 2016 2:08 pm

Re: Show Pictures

Unread post by marius »

Ion2 wrote: It did not work with the original livedemo, not with your upload here and not with the upload provided by Marius here
Hi Timo,

The version uploaded by me was fixing the "upload to blob" issue (your first issue). It definitely solved my issue anyway.
For your second issue (errors on displaying the picture), i suspect it could be an older version of the nuBuilderPro. Try to do a fresh install of the files: https://github.com/nuSoftware/nuBuilder ... master.zip

Good luck,
Marius.
Ion2
Posts: 41
Joined: Mon Jan 18, 2016 3:01 pm

Re: Show Pictures

Unread post by Ion2 »

Dear Marius,

thank you for your help. So far my issue is not solved. I reinstalled everyhing with the same result. By the way shouldn't the update funktion of nuBuilder take care of the newest versions?
Update_nuBuilder.png
Greetings,
Timo
You do not have the required permissions to view the files attached to this post.
Post Reply