I'm using:
MediaWiki 1.37.1
PHP 7.4.3 (fpm-fcgi)
Elasticsearch 5.6.16
VisualEditor 0.1.2
When I go to a page and click on Edit > Insert > Images and media; And when I start searching for files it works great, unless there's a PDF file, then the query returns an error message.
This only happens with PDF files.
I searched everywhere for this code error and I couldn't find a solution.
This is the request url:
/api.php?action=query&format=json&generator=allimages&gaisort=timestamp&gaidir=descending&iiurlheight=200&iiprop=dimensions%7Curl%7Cmediatype%7Cextmetadata%7Ctimestamp%7Cuser&prop=imageinfo&gaiuser=Admin&iiurlwidth=300&gailimit=15
I noticed when I remove the 'prop=imageinfo' from the query, it works with no problems.
Any ideas, suggestions and solutions are very appreciated.
I removed PdfHandler and it worked fine.
Related
I am using Intervention/Image to generate some images with Laravel. Something like this:
$img->text('test', 300, 30, function ($font) {
$font->file(public_path('assets/fonts/montserrat.ttf'));
$font->size(30);
$font->color('#000');
$font->align('center');
$font->valign('top');
$font->angle(0);
});
It worked till now...on the production server everything is alright but in my local server I get "imagettfbbox(): Problem doing text layout" everytime I am generating the image. I can't seem to find any answer to this problem.
I tried matching the PHP version with the one from my server (7.2), I previously had 7.4 on local but that doesnt seem to change anything :(
Would very much appreciate if someone could help me with this!
For anyone having this problem, I did something wrong, it seems like if the text value is null the image library does not know how to handle it, I had some cases in which the text was null and this caused the error.
I have images stored in a subdirectory as follows,
+ public
+ source
+ posts
+ images
+ rss-icon.png
+ post1
+ redsquare.jpg
+ greensquare.png
In a post I have the following,
![image](/images/post1/redsquare.jpg)
![image](/images/post1/greensquare.png)
On a local server, all three images (rss-icon, redsquare, greensquare) render no problems.
But when I deploy to Heroku, the greensquare.png image does not work. I instead get a 404 Failed to load resource status.
Both the rss-icon.png and redsquare.jpg work fine on the deployed site.
All the suggested solutions I can find apply only to Rails... for example this and this.
However I'm not using Rails...
I triple-checked the gitignore and slugignore files and there is nothing there that would cause this bias.
How can I resolve this? Any help appreciated.
EDIT:
Nevermind, found a solution. It was a minor error on my part see answer below. Leaving this here in case useful to someone.
Okay, so it turns out it had nothing to do with the location of the images. Instead it had to do with the lettercase of the extension.
My images looked like this,
I assumed that the extension was case-insensitive and wrote all my references using lowercase (png). But this isn't so! Changing to uppercase fixed the 404 issue.
As a side note, the uppercase PNG images were generated by Microsoft's Snipping Tool,
I'm using ABCPdf to convert HTML to a PDF. I'm using the method:
AddImageUrl()
This works fine in Dev and UAT, but on Production I continuously get the message:
Unable to render HTML. Unable to load
page
Anyone see this before? Need more info?
-Ev
I guess you are tying to do URL->pdf generation. It is difficult to directly to do URL->pdf conversion. We ended up URL-Save HTML in local folder ->read HTML and convert to PDF-> delete HTML file from folder - tricky approach but it works. The only flaw is that you need to give read/write permission on a folder on server. Its still better than decreasing security settings.
have you take a look at this http://www.itjungles.com/dotnet/abc2pdf-unable-to-render-html
The default timeout for abcpdf is 15 seconds. If the page is taking longer than 15 seconds, you will get this exception.
Add the line below just after object creation of the document to resolve the issue.
theDoc.XHtmlOptions.Timeout = 10000000;
I found by working backwards (removing elements) from a target html page that omitting the tag (of all things) created this error. also, calling localhost in the target url generated this error.
I have no idea what caused this error, but I stopped the scheduled task that was running, then restarted it and it's worked fnie ever since.
I 've installed magento and it seems to work, but if I want to save a new Catalog_product_set with different attributes then I get Internal Error Message with Status Code 500
Does anyone have the same problem?
Thanks in advance
cheers tabaluga
Your screenshot (and from the looks of it Magento's error page) clips the edge of the error off. Seeing the rest of the error message might be important. Regardless, it looks like Magento is trying to load a config file w/ simplexml, and cannot find that file.
We have a web site with domain http://209.59.154.150/~phnxaudi/,.
To develop this website we have used Joomla framework, and we have used Ckeditor in it, for uploading files(pdf, images etc ).
Also we have installed Ckeditor in the server.
But for some reason we are getting an internal 500 server error.
Could anyone please help us to solve this issue?
I have gotten 500 errors from ckFinder. It almost always is permissions. Ensure that the internet user has read/directory browse/write permissions to the configured "user files" folder.
Try to remove the ".htaccess" file in the ckeditor root directory. This caused the error at our server.
if that's dont work, try to gave 0755 permission to the connector file in core....
when you put your files in the server automatically give 0777 permissions, and I can't execute php file, ...
try with a "hello world" en ckfinder folder and you can see the problem of permission.
sorry for my bad english.
enjoy!
Try to remove the ".htaccess" file in the ckeditor root directory. This caused the error at our server. by Wim Van Loon < this solves the problem
Does the filename contain non-standard characters? Does it have no extension? I've found that if either of those are true, the image will not upload, the logs show nothing, and the CKEditor image upload interface shows a 500 error.
I faced the same issue with my ck_editor app, I was getting a similar type of error.
I tried copying demo application from django-ckeditor repository ck-editor demo application
with all the settings.
I faced two types of errors:-
Not mentioning upload path in the root urls
path('upload/', ImageUploadView.as_view(), name="upload")
import ImageUploadView from the ckeditor_uploader.views
I selected ckeditor_uploader's pillowbackend
This forum was quite useful to solve this problem.
which should have been something like
Hope it solves your problem.
i get this error
after install ckeditor and add the ckuploader '
Note: don't forget before you do the upload to run this commend:
python manage.py collectstatic
you need to get this folder in your project and on it you find this ckeditor folder:
enter image description here
I do this settings and it worked for me:
enter image description here
if you don't work with you just search on youtube
how to upload images in django - ckeditor