IJMacD
Forum Replies Created
-
Forum: Plugins
In reply to: [PDF Embedder] Re: Pdf embedder not loading jsfilesThe important thing is that
$this->pdfemb_wp_enqueue_scrips()is called beforewp_enqueue_script( 'pdfemb_embed_pdf_js' )22 protected function insert_scripts() { 23 if (!$this->inserted_scripts) { 24 $this->inserted_scripts = true; 24a + inserted line $this->pdfemb_wp_enqueue_scrips(); // NEW LINE 25 wp_enqueue_script( 'pdfemb_embed_pdf_js' ); 26 27 wp_enqueue_script( 'pdfemb_pdf_js' ); 28 29 wp_enqueue_style( 'pdfemb_embed_pdf_css', $this->my_plugin_url().'css/pdfemb-embed-pdf-'.$this->PLUGIN_VERSION.'.css', array(), $this->PLUGIN_VERSION ); 30 } 31 }I fixed this bug in my local install by changing line 26 in
wp-smtp.phpto:require_once __DIR__ . "/vendor/autoload.php"I also recreated the composer autoload scripts by running
composer dumpautoload -oin the plugin directory.The plugin was taken over by Yehuda Hassine sometime after September 2018. The most recent version on github is 1.1.9 by the previous owner. The new project owner needs to make these changes in his own copy of the plugin then release a new version. He also needs to test more thoroughly before releasing versions to the public.
- This reply was modified 5 years, 7 months ago by IJMacD.
I believe it is a qTranslate-X issue rather than this plugin (WooCommerce & qTranslate).
This github issue https://github.com/qTranslate-Team/qtranslate-x/issues/363 has a fix.
Forum: Plugins
In reply to: [Resize Image After Upload] HTTP errorI too am getting this error. I’ve only just installed this plugin so can’t say if this was due to a recent update or anything.
I’ve done some quick diagnosis. I can still upload images successfully which are below the resize limit I set with the plugin. However, when I try to upload an image larger I experience similar symptoms to @sepruda. The ajax uploader fails only returning the message ‘
HTTP Error‘. Using the browser uploader fails silently. Inspecting the request shows it was a 500 error but it too was silent. After enabling ‘WP_DEBUG‘ the server spat out this with the 500 response:Fatal error: Call to undefined function imagecreatefromjpeg() in /var/www/html/studio/wp-content/plugins/resize-image-after-upload/class.resize.php on line 183
I have ImageMagick installed on my server but not GD:
imagick module enabled imagick module version 3.1.2
WordPress is able to resize images itself, however, via the Edit Image page.