@amoras –
Thanks for the positive feedback and for your report. Since you’ve been assured that Ghostscript is installed, the problem might be that it is installed in a way MLA does not expect.
What kind of problem are you having, e.g., is it MLA-specific and if so, how? Does WordPress successfully generate thumbnail images for PDF documents when they are uploaded?
If you can access your site’s error log, you can activate some MLA debug logging to get more information about how the detection process is failing. Here’s an outline of how to proceed:
- Navigate to the Settings/Media Library Assistant Debug tab.
- Scroll down to the “MLA Reporting” text box and enter “0x09”. This will turn on MLA debug logging for the Ghostscript detection process.
- Click the Save Changes button to record your new setting.
- Optionally, scroll to the bottom of the screen and click “Reset” to clear the error log. You may not want to do this depending on how you manage your error log.
Once that’s done you can run the test. The debug log might be very detailed, so restricting the test as best you can will be very helpful. To reproduce your issue I think you can simply visit the Settings/Media Library Assistant Shortcodes tab and then collect the test results.
When you’ve finished testing, go back to the Debug screen and:
- Enter “0” in the MLA Reporting text box to turn debug logic off.
- Click the Save Changes button to record your new setting.
- Scroll to the bottom and click “Download” to get the log content in a text file.
There can be a lot of messages written to the log, so limit the amount of activity during the logging period. You should see messages in the log like these:
[26-Oct-2020 00:04:19 UTC] 640 MLACore::mla_plugins_loaded_action() MLA 2.84 (20201023) mla_debug_level 0x9
[26-Oct-2020 00:04:19 UTC] MLAShortcode_Support::mla_ghostscript_present( 1 ) explicit_path = ''
[26-Oct-2020 00:04:19 UTC] MLAShortcode_Support::mla_ghostscript_present( 1 ) ghostscript_present = NULL
[26-Oct-2020 00:04:19 UTC] <strong>MLAShortcode_Support::mla_ghostscript_present</strong>, getenv(GSC) = false
[26-Oct-2020 00:04:20 UTC] <strong>MLAShortcode_Support::mla_ghostscript_present</strong>, exec(where gswin*c.exe) = ''
[26-Oct-2020 00:04:20 UTC] <strong>MLAShortcode_Support::mla_ghostscript_present</strong>, exec(dir /o:n/s/b "C:\Program Files\gs\*gswin*c.exe") = 'C:\\Program Files\\gs\\gs9.20\\bin\\gswin64c.exe'
Of course, the details will be different. You might be able to spot the problem and resolve it on your own or with your hosting support group. If you need more assistance from me, you can post the interesting messages in this topic. You can also email me the information if that’s better for you. You can contact me at my web site to continue the dialog.