Page 2 of 3
Re: Show Pictures
Posted: Wed Jun 15, 2016 4:51 pm
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
Re: Show Pictures
Posted: Thu Jun 16, 2016 8:19 am
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?
Re: Show Pictures
Posted: Thu Jun 16, 2016 8:20 am
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?
Re: Show Pictures
Posted: Thu Jun 16, 2016 3:17 pm
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.
Re: Show Pictures
Posted: Thu Jun 16, 2016 3:42 pm
by Ion2
Dear Marius,
thank you so much for your help! Sadly it has no effect:
- STPLG_with_new_Marius_livedemo.png (41.82 KiB) Viewed 82785 times
Greetings,
Timo
Re: Show Pictures
Posted: Thu Jun 16, 2016 3:49 pm
by Ion2
On Safe I'll get a "Requested JSON parse failed" and the database looks like that afterwards:
- blob_0B.png (137.31 KiB) Viewed 82785 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 (18.81 KiB) Viewed 82785 times
Only the SHOW-function seems not to work here.
Hope you can help!
Timo
Re: Show Pictures
Posted: Fri Jun 17, 2016 7:04 am
by admin
Ion2,
Does the show function work in the livedemo download?
Steven
Re: Show Pictures
Posted: Fri Jun 17, 2016 8:11 am
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
Re: Show Pictures
Posted: Fri Jun 17, 2016 3:47 pm
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.
Re: Show Pictures
Posted: Mon Jun 20, 2016 3:02 pm
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 (10.96 KiB) Viewed 82770 times
Greetings,
Timo