• Resolved blueoaks

    (@blueoaks)


    Today I added your Tabs and Image Expansion Kit. No problems with installation and set up. Existing images all show as expected in media library, in admin and in List view. However when I attempt to upload one or more images, either while editing an existing record from List Participants in wordpress admin or on front end via Signup, the upload reaches 98%, briefly shows a thumbnail of the image(s) and over the image gives “ERROR Internal Server Error”, not allowing upload to complete.

    I turned on debugging mode and see these errors:

    [11/20/18 2:11pm UTC]
    getimagesize(): https:// wrapper is disabled in the server configuration by allow_url_fopen=0
    in /home/boutiquehomes/join.boutique-homes.com/wp-content/plugins/participants-database/classes/xnau_Image_Handler.class.php on line 623
    [11/20/18 2:11pm UTC]
    getimagesize(https://join.boutique-homes.com/wp-content/plugins/participants-database/ui/no-image.png): failed to open stream: no suitable wrapper could be found
    in /home/boutiquehomes/join.boutique-homes.com/wp-content/plugins/participants-database/classes/xnau_Image_Handler.class.php on line 623

    thanks for your help

    The page I need help with: [log in to see the link]

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author xnau webdesign

    (@xnau)

    It looks like you need to adjust your php configuration:

    allow_url_fopen = 1

    if you are unsure how to do this, you should ask you hosting provider.

    Thread Starter blueoaks

    (@blueoaks)

    I have enabled allow_url_fopen = 1 on the server but get the same exact behavior as before (same error).

    When I do recreate the error by uploading 1 or more images, all the debug log says is

    [11/23/18 1:54am UTC]
    PDb_List_Admin::initialize
    list query: SELECT * FROM wp_participants_database p ORDER BY p.date_recorded desc

    Any other help? I really need to get this working for my client. Thank you.

    Plugin Author xnau webdesign

    (@xnau)

    IF you are getting the exact same error, that suggest you are not successfully changing the server configuration. IT may be helpful to ask your hosting provider the best way to change the php configuration.

    Thread Starter blueoaks

    (@blueoaks)

    I dont get an error in the debug log, I do still get the same error in the drag/drop photo upload area:

    screenshot of error

    The hosting provider knew exactly what change I needed to make per your first response and provided a very clear, easy way to make the change. I am confident it has been made. I dont know how to test it but I can see it has been enabled in the settings.

    Furthermore, after making this change with the hosting provider, the original error seen in the debug log is gone, but I still cant upload images.

    Thread Starter blueoaks

    (@blueoaks)

    Additional info in case it sheds some light:

    – I was able to upload images no problem prior to activating Image Expansion Kit
    – as a test I deactivated Image Expansion Kit and am able to upload an image no problem
    – turning IEK back on, I can no longer upload even one image. It shows a thumb, gets 98% complete and says ‘error’

    thanks for your help

    Plugin Author xnau webdesign

    (@xnau)

    It may be that the error log is not picking up this particular error because of the context in which the operation is taking place. The “gallery” upload field works very differently from the standard upload field. An internal server error should print something to the log.

    Another possibility is to open the developer tools in the browser while attempting an upload. You may see something in the “console” but a good place to look would be in the “network” panel, if you click on the request that is uploading the image (it will be a post request to admin-ajax.php), you may see the error in the request response.

    Thread Starter blueoaks

    (@blueoaks)

    Thanks for the response.
    I created a test page with the IEK multi photo upload field here:
    https://join.boutique-homes.com/pdb-test/

    Upon load of the page in an incognito window the JS console gives this:
    POST https://join.boutique-homes.com/wp-admin/admin-ajax.php 400 (Bad Request)

    Upon upload of image, the JS console says:
    POST https://join.boutique-homes.com/wp-admin/admin-ajax.php 500 (Internal Server Error)

    Looking through the Network panel reveals the site is using Cloudflare. Could that be the problem? and if so can you suggest a change I should make to those settings to allow image uploads via IEK?

    The Network Response Headers has this:
    HTTP/1.1 500 Internal Server Error
    Date: Sun, 25 Nov 2018 15:53:33 GMT
    Content-Type: text/html; charset=UTF-8
    Transfer-Encoding: chunked
    Connection: keep-alive
    Pragma: no-cache
    Access-Control-Allow-Origin: https://join.boutique-homes.com
    Access-Control-Allow-Credentials: true
    X-Robots-Tag: noindex
    X-Content-Type-Options: nosniff
    Expires: Wed, 11 Jan 1984 05:00:00 GMT
    Cache-Control: no-cache, must-revalidate, max-age=0
    X-Frame-Options: SAMEORIGIN
    Referrer-Policy: strict-origin-when-cross-origin
    Expect-CT: max-age=604800, report-uri=”https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct”
    Server: cloudflare
    CF-RAY: 47f549e3ae496cb2-SJC

    The PDB Debug Log does not consistently show an error, but on one test it did show this:

    [11/25/18 5:57am UTC]
    Undefined index: date_recorded
    in /home/boutiquehomes/join.boutique-homes.com/wp-content/plugins/participants-database/participants-database.php on line 1690
    [11/25/18 5:57am UTC]
    Undefined index: date_updated
    in /home/boutiquehomes/join.boutique-homes.com/wp-content/plugins/participants-database/participants-database.php on line 1693

    Does any of this help identify the problem? Most of this is Greek to me.

    (by the way, the debug log wont clear)

    Plugin Author xnau webdesign

    (@xnau)

    Not much help there, sorry to say. This is something that will probably show up in your php error log. The plugin’s debug log likely won’t pick it up, you need to get the log directly from the server.

    Have you asked you hosting provider to check into this?

    I tried your test page, and wasn’t able to uncover anything new from there.

    Thread Starter blueoaks

    (@blueoaks)

    Here is result of wp_debug log. Shed any light?

    [25-Nov-2018 18:40:09 UTC] PHP Fatal error: Uncaught Error: Call to undefined function pdbiex\mime_content_type() in /home/boutiquehomes/join.boutique-homes.com/wp-content/plugins/pdb-image-expansion/pdbiex/PDb_File_Uploads_ML.php:193
    Stack trace:
    #0 /home/boutiquehomes/join.boutique-homes.com/wp-content/plugins/pdb-image-expansion/pdbiex/PDb_File_Uploads_ML.php(122): pdbiex\PDb_File_Uploads_ML->filetype_ok(‘/tmp/phpzGnEZW’, Object(PDb_Form_Field_Def))
    #1 /home/boutiquehomes/join.boutique-homes.com/wp-content/plugins/pdb-image-expansion/pdbiex/PDb_File_Uploads_ML.php(36): pdbiex\PDb_File_Uploads_ML->handle_file_upload(‘photo’, Array, ‘1b0ccb7d2f’)
    #2 /home/boutiquehomes/join.boutique-homes.com/wp-content/plugins/pdb-image-expansion/pdbiex/custom_field/Multi_Upload_AJAX.php(81): pdbiex\PDb_File_Uploads_ML::upload(‘photo’, Array, ‘1b0ccb7d2f’)
    #3 /home/boutiquehomes/join.boutique-homes.com/wp-includes/class-wp-hook.php(286): pdbiex\custom_field\Multi_Upload_AJAX->process_ajax_request(”)
    #4 /home/boutiquehomes/join.boutique-homes.com/wp-includes/class-wp-hook.php(310): WP_Hook->apply_filters(”, Array)
    #5 /home/boutiquehomes/join.boutique-homes.com/wp-includes/plugin.php(453): WP_Hook->do_action(Array)
    #6 /home/boutiquehomes/join.boutique-homes.com/wp-admin/admin-ajax.php(115): do_action(‘wp_ajax_nopriv_…’)
    #7 {main}
    thrown in /home/boutiquehomes/join.boutique-homes.com/wp-content/plugins/pdb-image-expansion/pdbiex/PDb_File_Uploads_ML.php on line 193

    Plugin Author xnau webdesign

    (@xnau)

    There it is.

    This suggests your php install is missing the php_fileinfo module. That is a little unusual because that has been a standard module for many years. Anyway, make sure your php is compiling with that module. If you don’t have the ability to do this yourself, ask your web host.

    Thread Starter blueoaks

    (@blueoaks)

    That was the solution. Thanks so much for figuring this out.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘ERROR: internal server error’ is closed to new replies.