Valid Imge File


#1

Hi! Thank you for your theme!

I'm trying to upload a logo to my website using a 268 × 140 jpg image and it tells me it is not a valid image file. I've tried using the URL but I get this:

Warning: version_compare() expects parameter 2 to be string, array given in /home/thefavo/public_html/wp-content/themes/rtpanel/admin/lib/rtp-admin-functions.php on line 635

Warning: Cannot modify header information - headers already sent by (output started at /home/thefavo/public_html/wp-content/themes/rtpanel/admin/lib/rtp-admin-functions.php:635) in /home/thefavo/public_html/wp-includes/pluggable.php on line 881

It was working OK before the upgrade, I don't know what happened.

Thank you!!

Sandra

Sandra.


#2

Hello Sandra.

The problem has occured due to change in markup of theme framework.

Below is the solution:

Locate the file: admin/lib/rtp-admin-functions.php

All you need to do is to simply replace the following code from the file at line number 853:

preg_match('//iU', $form_fields['url']['html'], $file_path ); 

with

preg_match(’/<button.urlfile.[data-link-url|title]=’(.)’./button>/iU’, $form_fields[‘url’][‘html’], $file_path );

It should solve the problem. Please feel free to revert back if problem still persists.


#3