Show Pictures

Re: Show Pictures

Postby Ion2 » Thu Jun 16, 2016 12:21 am

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
Ion2
 
Posts: 41
Joined: Mon Jan 18, 2016 11:31 pm

Re: Show Pictures

Postby ywauto » Thu Jun 16, 2016 3:49 pm

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 12:30 pm

Re: Show Pictures

Postby ywauto » Thu Jun 16, 2016 3:50 pm

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?
ywauto
 
Posts: 4
Joined: Tue Jun 07, 2016 12:30 pm

Re: Show Pictures

Postby marius » Thu Jun 16, 2016 10:47 pm

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.
Attachments
livedemo_new.zip
(791.45 KiB) Downloaded 129 times
marius
 
Posts: 4
Joined: Wed Jun 15, 2016 9:38 pm

Re: Show Pictures

Postby Ion2 » Thu Jun 16, 2016 11:12 pm

Dear Marius,

thank you so much for your help! Sadly it has no effect:

STPLG_with_new_Marius_livedemo.png
STPLG_with_new_Marius_livedemo.png (41.82 KiB) Viewed 5321 times

Greetings,
Timo
Ion2
 
Posts: 41
Joined: Mon Jan 18, 2016 11:31 pm

Re: Show Pictures

Postby Ion2 » Thu Jun 16, 2016 11:19 pm

On Safe I'll get a "Requested JSON parse failed" and the database looks like that afterwards:

blob_0B.png
blob_0B.png (137.31 KiB) Viewed 5321 times

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
life_system.png (18.81 KiB) Viewed 5321 times

Only the SHOW-function seems not to work here.

Hope you can help!

Timo
Ion2
 
Posts: 41
Joined: Mon Jan 18, 2016 11:31 pm

Re: Show Pictures

Postby admin » Fri Jun 17, 2016 2:34 pm

Ion2,

Does the show function work in the livedemo download?

Steven
admin
Site Admin
 
Posts: 3135
Joined: Mon Jun 15, 2009 9:53 am

Re: Show Pictures

Postby Ion2 » Fri Jun 17, 2016 3:41 pm

Hi Steven,

no, always it looks like the second picture in this post: http://forums.nubuilder.com/viewtopic.php?f=13&t=8947#p14490

It did not work with the original livedemo, not with your upload here (http://forums.nubuilder.com/viewtopic.php?f=13&t=8947#p14543) and not with the upload provided by Marius here (http://forums.nubuilder.com/viewtopic.php?f=13&t=8947&start=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
Ion2
 
Posts: 41
Joined: Mon Jan 18, 2016 11:31 pm

Re: Show Pictures

Postby marius » Fri Jun 17, 2016 11:17 pm

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/nuBuilderPro/archive/master.zip

Good luck,
Marius.
marius
 
Posts: 4
Joined: Wed Jun 15, 2016 9:38 pm

Re: Show Pictures

Postby Ion2 » Mon Jun 20, 2016 10:32 pm

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
Update_nuBuilder.png (10.96 KiB) Viewed 5306 times

Greetings,
Timo
Ion2
 
Posts: 41
Joined: Mon Jan 18, 2016 11:31 pm

PreviousNext

Return to General



cron