Error: Call to undefined function A3020\ImageOptimizer\mime_content_type()

Permalink Browser Info Environment
Previously the plugin has been working fine. I moved my site to a new VPS server and have set it up, but am getting the error: Call to undefined function A3020\ImageOptimizer\mime_content_type()

In this version I wanted to use the TinyPNG tool so I've set the API up and have all 3 items from the "general" area checked.

When I run it from the automated jobs area, I get the reported error.

Ideas?

Type: Ticket
Status: Archived
plschneide
View Replies:
A3020 replied on at Permalink Reply
A3020
I'll take a look.
A3020 replied on at Permalink Reply
A3020
I've pushed version 3.2.11 which adds a fallback if that function is not available. Would you mind upgrading and testing it? Thank you!
plschneide replied on at Permalink Reply
plschneide
Well that bypassed that - but now I get
Call to undefined function A3020\ImageOptimizer\finfo_open()

are either of these functions I can turn on through PHP ini or something else?
A3020 replied on at Permalink Reply
A3020
I'm surprised... this extension is default as of PHP 5.3.0 (https://www.php.net/manual/en/fileinfo.installation.php). Or are you running on a Windows box?

In any case, it should be enabled on a server level.
plschneide replied on at Permalink Reply
plschneide
Thanks - sorry I'm not getting notices and didn't see this. It is a linux box. Hwoever it is a new VPS server, it might be missing something.

I'll check and see for the file-open extension(I'm using 5.6 at the moment - trying to get a few things like this sorted out so I can upgrade to 7.2/7.3)
plschneide replied on at Permalink Reply
plschneide
That was it - for some reason that wasn't installed. Got it installed and working great.

re: Mime_content_type - is that something that maybe I should be looking into getting installed too? Seems to be working with the change you made though (and the aforementioned install)
A3020 replied on at Permalink Reply
A3020
Thanks for the feedback and good to hear it now works. From what I'm reading Finfo is supposed to replace the mime_content_type, so I guess you're good.
plschneide replied on at Permalink Reply
plschneide
Excellent - thanks for confirming!
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.

To re-open this issue, reply to this message.
ConcreteCMS replied on at Permalink Reply
ConcreteCMS
Attention: Since there has been no activity on this issue for two weeks, this issue has been automatically archived.

To re-open this issue, reply to this message.

concrete5 Environment Information

# concrete5 Version
Core Version - 8.5.2
Version Installed - 8.5.2
Database Version - 20190925072210

# Database Information
Version: 5.7.30
SQL Mode: ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

# concrete5 Packages
Background Image and Overlay (0.9.9), ExchangeCore reCAPTCHA (1.1.1), Formidable (Lite Version) (1.1.8), HTML Beautifier + Minifier (1.1.0), Hutman Ads (1.1.3), Image Optimizer (3.2.10), Info Box Grid (1.8), Lazy Menu (1.1.3), Location Map (1.0.11), Login/Logout Link (1.0), Magic Tabs (7.2.8), Quick Tabs (1.0), Responsive Embed (1.0.1), Responsive Theme (2.1.9), Site Alerts (1.0.0), Zoomer (1.0.1)

# concrete5 Overrides
css/jquery-magnific-popup.css

# concrete5 Cache Settings
Block Cache - On
Overrides Cache - Off
Full Page Caching - On - If blocks on the particular page allow it.
Full Page Cache Lifetime - Every 6 hours (default setting).

# Server Software
Apache

# Server API
fpm-fcgi

# PHP Version
5.6.40

# PHP Extensions
bcmath, calendar, cgi-fcgi, Core, ctype, curl, date, dom, ereg, filter, ftp, gd, hash, iconv, imap, json, libxml, mbstring, mhash, mysql, mysqli, mysqlnd, openssl, pcntl, pcre, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, session, SimpleXML, sockets, SPL, sqlite3, standard, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, zlib

# PHP Settings
max_execution_time - 180
log_errors_max_len - 1024
max_file_uploads - 20
max_input_nesting_level - 64
max_input_time - 60
max_input_vars - 1000
memory_limit - 256M
post_max_size - 512M
sql.safe_mode - Off
upload_max_filesize - 512M
mysql.max_links - Unlimited
mysql.max_persistent - Unlimited
mysqli.max_links - Unlimited
mysqli.max_persistent - Unlimited
pcre.backtrack_limit - 1000000
pcre.recursion_limit - 100000
session.cache_limiter - <i>no value</i>
session.gc_maxlifetime - 7200

Browser User-Agent String

Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:77.0) Gecko/20100101 Firefox/77.0

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You may not request a refund that is not currently owned by you.