ridwanskaterock / cicool

Cicool is a multifunctional application that is used to facilitate your work in creating a system, CMS, E-Comerce and others
20 stars 13 forks source link

Image upload not displaying on CRUD form #531

Open stokes84 opened 1 year ago

stokes84 commented 1 year ago

Unable to get the image File or File Multiple input to display properly, config at each step below for consideration.

Blank Field on Add Form image

Console Error image

CRUD Entry image

Database Entry image

ridwanskaterock commented 1 year ago

Hi can you replace this file main_layout.zip

on application/view/backend/standart/main_layout.php

thanks

stokes84 commented 1 year ago

Hi can you replace this file main_layout.zip

on application/view/backend/standart/main_layout.php

thanks

Thanks Muhamad,

Image upload form is visible and loaded now. The next issue appears to be the missing folder structure for the uploads. Let me know if you want me to try and create this folder structure manually to test.

Edit: If I manually create the folder structure and CHMOD to 755 I get get fine uploader to fail and throw the error, "Error when attempting to parse xhr response text in fineUploader".

Chrome Dev Console image

Server Error Logs image

Edit: @ridwanskaterock could you share your exact PHP version and settings from the demo as well as Apache settings?

ridwanskaterock commented 1 year ago

Can you share for XHR response here ?

THanks

On Tue, Nov 22, 2022 at 7:16 PM Chris Stokes @.***> wrote:

Hi can you replace this file main_layout.zip https://github.com/ridwanskaterock/cicool/files/10049883/main_layout.zip on application/view/backend/standart/main_layout.php thanks

Thanks Muhamad,

Image upload form is visible and loaded now. The next issue appears to be the missing folder structure for the uploads. Let me know if you want me to try and create this folder structure manually to test.

Edit: If I manually create the folder structure and CHMOD to 777 I get 403 errors when trying to upload images.

Chrome Dev Console [image: image] https://user-images.githubusercontent.com/1835077/202914432-9137e57c-b5e3-44dc-a545-96c832a76c53.png

Server Error Logs [image: image] https://user-images.githubusercontent.com/1835077/202914574-395296df-9f3b-4bf8-8c10-4c8944117465.png

CRUD Name: Test CRUD Create Folder 1: administrator/test_crud/delete_Images_file CHMOD 755: administrator/test_crud/delete_Images_file Place blank index.html @ administrator/test_crud/delete_Images_file Create Folder 2: administrator/test_crud/upload_Images_file CHMOD 755: administrator/test_crud/upload_Images_file Place blank index.html @ administrator/test_crud/upload_Images_file

Update, I was able to manually create the missing folder structure, CHMOD to 755, place an blank index.html file in the directory and image uploads now are close to functioning. Unfortunately there's another error to work through listed below.

[image: image] https://user-images.githubusercontent.com/1835077/203446088-e2cf71e1-8be3-44f9-aa4d-3dba2ec3612e.png

— Reply to this email directly, view it on GitHub https://github.com/ridwanskaterock/cicool/issues/531#issuecomment-1324392279, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACGXJLPLG4O5BMVQXVGEL53WJVO4BANCNFSM6AAAAAASFUKLJ4 . You are receiving this because you commented.Message ID: @.***>

--

Muhamad Ridwan Software Engineer | Cicool Engine m: +62 812 1310 9812 e: @.*** Bogor West Java - Indonesia www.go-moment.com http://go-moment.com [image: facebook icon] [image: twitter icon] [image: youtube icon] [image: linkedin icon]

stokes84 commented 1 year ago

Can you share for XHR response here ? THanks

$_GET [] $_POST [] URI STRING "administrator/test_crud/add" CLASS/METHOD "test_crud/add" $_SERVER array:18 [ "HTTP_ACCEPT" => "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9" "HTTP_USER_AGENT" => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36" "HTTP_CONNECTION" => "close" "SERVER_PORT" => "443" "SERVER_NAME" => "redacted.com" "REMOTE_ADDR" => "1.1.1.1" "SERVER_SOFTWARE" => "Apache" "HTTP_ACCEPT_LANGUAGE" => "en-US,en;q=0.9" "SCRIPT_NAME" => "/data/index.php" "REQUEST_METHOD" => "GET" "HTTP_HOST" => "redacted.com" "REMOTE_HOST" => null "CONTENT_TYPE" => null "SERVER_PROTOCOL" => "HTTP/1.0" "QUERY_STRING" => "" "HTTP_ACCEPT_ENCODING" => "gzip, deflate, br" "HTTP_X_FORWARDED_FOR" => null "HTTP_DNT" => "1" ]

From Chrome dev console below:

fetch("https://redacted.com/data/administrator/crud_test/upload_Images_file", { "headers": { "accept": "application/json", "accept-language": "en-US,en;q=0.9", "cache-control": "no-cache", "content-type": "multipart/form-data; boundary=----WebKitFormBoundary0tVLnTcZmNgdpbZB", "sec-ch-ua": "\"Google Chrome\";v=\"107\", \"Chromium\";v=\"107\", \"Not=A?Brand\";v=\"24\"", "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": "\"Windows\"", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-origin", "x-requested-with": "XMLHttpRequest" }, "referrer": "https://redacted.com/data/administrator/crud_test/add", "referrerPolicy": "strict-origin-when-cross-origin", "body": "------WebKitFormBoundary0tVLnTcZmNgdpbZB\r\nContent-Disposition: form-data; name=\"ci_csrf_token\"\r\n\r\n\r\n------WebKitFormBoundary0tVLnTcZmNgdpbZB\r\nContent-Disposition: form-data; name=\"qquuid\"\r\n\r\n92d8a45d-c0a3-4744-b768-59f1c804e5d1\r\n------WebKitFormBoundary0tVLnTcZmNgdpbZB\r\nContent-Disposition: form-data; name=\"qqfilename\"\r\n\r\nlogo.png\r\n------WebKitFormBoundary0tVLnTcZmNgdpbZB\r\nContent-Disposition: form-data; name=\"qqtotalfilesize\"\r\n\r\n6331\r\n------WebKitFormBoundary0tVLnTcZmNgdpbZB\r\nContent-Disposition: form-data; name=\"qqfile\"; filename=\"logo.png\"\r\nContent-Type: image/png\r\n\r\n\r\n------WebKitFormBoundary0tVLnTcZmNgdpbZB--\r\n", "method": "POST", "mode": "cors", "credentials": "include" });

ridwanskaterock commented 1 year ago

can you share the admin login and FTP to my email @.***?

Thanks

On Wed, Nov 23, 2022 at 1:59 PM Chris Stokes @.***> wrote:

Can you share for XHR response here ? THanks … <#m-7093404204874654193> On Tue, Nov 22, 2022 at 7:16 PM Chris Stokes @.> wrote: Hi can you replace this file main_layout.zip https://github.com/ridwanskaterock/cicool/files/10049883/main_layout.zip https://github.com/ridwanskaterock/cicool/files/10049883/main_layout.zip on application/view/backend/standart/main_layout.php thanks Thanks Muhamad, Image upload form is visible and loaded now. The next issue appears to be the missing folder structure for the uploads. Let me know if you want me to try and create this folder structure manually to test. Edit: If I manually create the folder structure and CHMOD to 777 I get 403 errors when trying to upload images. Chrome Dev Console [image: image] https://user-images.githubusercontent.com/1835077/202914432-9137e57c-b5e3-44dc-a545-96c832a76c53.png https://user-images.githubusercontent.com/1835077/202914432-9137e57c-b5e3-44dc-a545-96c832a76c53.png Server Error Logs [image: image] https://user-images.githubusercontent.com/1835077/202914574-395296df-9f3b-4bf8-8c10-4c8944117465.png https://user-images.githubusercontent.com/1835077/202914574-395296df-9f3b-4bf8-8c10-4c8944117465.png CRUD Name: Test CRUD Create Folder 1: administrator/test_crud/delete_Images_file CHMOD 755: administrator/test_crud/delete_Images_file Place blank index.html @ administrator/test_crud/delete_Images_file Create Folder 2: administrator/test_crud/upload_Images_file CHMOD 755: administrator/test_crud/upload_Images_file Place blank index.html @ administrator/test_crud/upload_Images_file Update, I was able to manually create the missing folder structure, CHMOD to 755, place an blank index.html file in the directory and image uploads now are close to functioning. Unfortunately there's another error to work through listed below. [image: image] https://user-images.githubusercontent.com/1835077/203446088-e2cf71e1-8be3-44f9-aa4d-3dba2ec3612e.png https://user-images.githubusercontent.com/1835077/203446088-e2cf71e1-8be3-44f9-aa4d-3dba2ec3612e.png — Reply to this email directly, view it on GitHub <#531 (comment) https://github.com/ridwanskaterock/cicool/issues/531#issuecomment-1324392279>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACGXJLPLG4O5BMVQXVGEL53WJVO4BANCNFSM6AAAAAASFUKLJ4 https://github.com/notifications/unsubscribe-auth/ACGXJLPLG4O5BMVQXVGEL53WJVO4BANCNFSM6AAAAAASFUKLJ4 . You are receiving this because you commented.Message ID: @.> -- Muhamad Ridwan Software Engineer | Cicool Engine m: +62 812 1310 9812 e: @.*** Bogor West Java - Indonesia www.go-moment.com http://go-moment.com [image: facebook icon] [image: twitter icon] [image: youtube icon] [image: linkedin icon]

$_GET [] $_POST [] URI STRING "administrator/test_crud/add" CLASS/METHOD "test_crud/add" $_SERVER array:18 [ "HTTP_ACCEPT" => "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng, /;q=0.8,application/signed-exchange;v=b3;q=0.9" "HTTP_USER_AGENT" => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36" "HTTP_CONNECTION" => "close" "SERVER_PORT" => "443" "SERVER_NAME" => "redacted.com" "REMOTE_ADDR" => "1.1.1.1" "SERVER_SOFTWARE" => "Apache" "HTTP_ACCEPT_LANGUAGE" => "en-US,en;q=0.9" "SCRIPT_NAME" => "/data/index.php" "REQUEST_METHOD" => "GET" "HTTP_HOST" => "redacted.com" "REMOTE_HOST" => null "CONTENT_TYPE" => null "SERVER_PROTOCOL" => "HTTP/1.0" "QUERY_STRING" => "" "HTTP_ACCEPT_ENCODING" => "gzip, deflate, br" "HTTP_X_FORWARDED_FOR" => null "HTTP_DNT" => "1" ]

— Reply to this email directly, view it on GitHub https://github.com/ridwanskaterock/cicool/issues/531#issuecomment-1325530361, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACGXJLO5JEGZGMZWDZAYIL3WJZSSFANCNFSM6AAAAAASFUKLJ4 . You are receiving this because you were mentioned.Message ID: @.***>

--

Muhamad Ridwan Software Engineer | Cicool Engine m: +62 812 1310 9812 e: @.*** Bogor West Java - Indonesia www.go-moment.com http://go-moment.com [image: facebook icon] [image: twitter icon] [image: youtube icon] [image: linkedin icon]

stokes84 commented 1 year ago

can you share the admin login and FTP to my email @.***?

Your email address within your response was obfuscated by github in your response. I DM'ed you on code canyon with FTP credentials. Let me know if you need anything else.

ridwanskaterock commented 1 year ago

Hi sorry i not see your email for credential ? can you share to my email @.***

Thanks

On Mon, Dec 5, 2022 at 2:01 PM Chris Stokes @.***> wrote:

can you share the admin login and FTP to my email @.? Thanks On Wed, Nov 23, 2022 at 1:59 PM Chris Stokes @.> wrote: … <#m-451167008995078352> Can you share for XHR response here ? THanks … <#m-7093404204874654193> On Tue, Nov 22, 2022 at 7:16 PM Chris Stokes @.> wrote: Hi can you replace this file main_layout.zip https://github.com/ridwanskaterock/cicool/files/10049883/main_layout.zip https://github.com/ridwanskaterock/cicool/files/10049883/main_layout.zip https://github.com/ridwanskaterock/cicool/files/10049883/main_layout.zip https://github.com/ridwanskaterock/cicool/files/10049883/main_layout.zip on application/view/backend/standart/main_layout.php thanks Thanks Muhamad, Image upload form is visible and loaded now. The next issue appears to be the missing folder structure for the uploads. Let me know if you want me to try and create this folder structure manually to test. Edit: If I manually create the folder structure and CHMOD to 777 I get 403 errors when trying to upload images. Chrome Dev Console [image: image] https://user-images.githubusercontent.com/1835077/202914432-9137e57c-b5e3-44dc-a545-96c832a76c53.png https://user-images.githubusercontent.com/1835077/202914432-9137e57c-b5e3-44dc-a545-96c832a76c53.png https://user-images.githubusercontent.com/1835077/202914432-9137e57c-b5e3-44dc-a545-96c832a76c53.png https://user-images.githubusercontent.com/1835077/202914432-9137e57c-b5e3-44dc-a545-96c832a76c53.png Server Error Logs [image: image] https://user-images.githubusercontent.com/1835077/202914574-395296df-9f3b-4bf8-8c10-4c8944117465.png https://user-images.githubusercontent.com/1835077/202914574-395296df-9f3b-4bf8-8c10-4c8944117465.png https://user-images.githubusercontent.com/1835077/202914574-395296df-9f3b-4bf8-8c10-4c8944117465.png https://user-images.githubusercontent.com/1835077/202914574-395296df-9f3b-4bf8-8c10-4c8944117465.png CRUD Name: Test CRUD Create Folder 1: administrator/test_crud/delete_Images_file CHMOD 755: administrator/test_crud/delete_Images_file Place blank index.html @ administrator/test_crud/delete_Images_file Create Folder 2: administrator/test_crud/upload_Images_file CHMOD 755: administrator/test_crud/upload_Images_file Place blank index.html @ administrator/test_crud/upload_Images_file Update, I was able to manually create the missing folder structure, CHMOD to 755, place an blank index.html file in the directory and image uploads now are close to functioning. Unfortunately there's another error to work through listed below. [image: image] https://user-images.githubusercontent.com/1835077/203446088-e2cf71e1-8be3-44f9-aa4d-3dba2ec3612e.png https://user-images.githubusercontent.com/1835077/203446088-e2cf71e1-8be3-44f9-aa4d-3dba2ec3612e.png https://user-images.githubusercontent.com/1835077/203446088-e2cf71e1-8be3-44f9-aa4d-3dba2ec3612e.png https://user-images.githubusercontent.com/1835077/203446088-e2cf71e1-8be3-44f9-aa4d-3dba2ec3612e.png — Reply to this email directly, view it on GitHub <#531 https://github.com/ridwanskaterock/cicool/issues/531 (comment) <#531 (comment) https://github.com/ridwanskaterock/cicool/issues/531#issuecomment-1324392279>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACGXJLPLG4O5BMVQXVGEL53WJVO4BANCNFSM6AAAAAASFUKLJ4 https://github.com/notifications/unsubscribe-auth/ACGXJLPLG4O5BMVQXVGEL53WJVO4BANCNFSM6AAAAAASFUKLJ4 https://github.com/notifications/unsubscribe-auth/ACGXJLPLG4O5BMVQXVGEL53WJVO4BANCNFSM6AAAAAASFUKLJ4 https://github.com/notifications/unsubscribe-auth/ACGXJLPLG4O5BMVQXVGEL53WJVO4BANCNFSM6AAAAAASFUKLJ4 . You are receiving this because you commented.Message ID: @.> -- Muhamad Ridwan Software Engineer | Cicool Engine m: +62 812 1310 9812 e: @.** Bogor West Java - Indonesia www.go-moment.com http://go-moment.com [image: facebook icon] [image: twitter icon] [image: youtube icon] [image: linkedin icon] $_GET [] $_POST [] URI STRING "administrator/test_crud/add" CLASS/METHOD "test_crud/add" $_SERVER array:18 [ "HTTP_ACCEPT" => "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng, /;q=0.8,application/signed-exchange;v=b3;q=0.9" "HTTP_USER_AGENT" => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/107.0.0.0 Safari/537.36" "HTTP_CONNECTION" => "close" "SERVER_PORT" => "443" "SERVER_NAME" => "redacted.com" "REMOTE_ADDR" => "1.1.1.1" "SERVER_SOFTWARE" => "Apache" "HTTP_ACCEPT_LANGUAGE" => "en-US,en;q=0.9" "SCRIPT_NAME" => "/data/index.php" "REQUEST_METHOD" => "GET" "HTTP_HOST" => "redacted.com" "REMOTE_HOST" => null "CONTENT_TYPE" => null "SERVER_PROTOCOL" => "HTTP/1.0" "QUERY_STRING" => "" "HTTP_ACCEPT_ENCODING" => "gzip, deflate, br" "HTTP_X_FORWARDED_FOR" => null "HTTP_DNT" => "1" ] — Reply to this email directly, view it on GitHub <#531 (comment) https://github.com/ridwanskaterock/cicool/issues/531#issuecomment-1325530361>, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACGXJLO5JEGZGMZWDZAYIL3WJZSSFANCNFSM6AAAAAASFUKLJ4 . You are receiving this because you were mentioned.Message ID: @. > -- Muhamad Ridwan Software Engineer | Cicool Engine m: +62 812 1310 9812 e: @.* Bogor West Java - Indonesia www.go-moment.com http://go-moment.com [image: facebook icon] [image: twitter icon] [image: youtube icon] [image: linkedin icon]

Email address was obfuscated in response. I private messaged you on code canyon with FTP credentials. Let me know if you need anything.

— Reply to this email directly, view it on GitHub https://github.com/ridwanskaterock/cicool/issues/531#issuecomment-1337975819, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACGXJLKVZOQEYGEJMIX7563WLY3W5ANCNFSM6AAAAAASFUKLJ4 . You are receiving this because you were mentioned.Message ID: @.***>

--

Muhamad Ridwan Software Engineer | Cicool Engine m: +62 812 1310 9812 e: @.*** Bogor West Java - Indonesia www.go-moment.com http://go-moment.com [image: facebook icon] [image: twitter icon] [image: youtube icon] [image: linkedin icon]

stokes84 commented 1 year ago

image

I messaged you with credentials via codecanyon.

Could you post an image of your email address so it doesn't get obfuscated as visible above?

ridwanskaterock commented 1 year ago

Hi sorry This is my email, image