Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:

Images of the payment methods don't load correctly when VikRentCar plugin is being used.

Solution:

Please go to "wp-content/plugins/vikrentcar/site/views/oconfirm/tmpl/default.php", replace the following

$pay['logo'] = strpos($pay['logo'], 'http') === false ? JUri::root() . $pay['logo'] : $pay['logo'];

with

$pay['logo'] = strpos($pay['logo'], 'http') === false ? trailingslashit(get_site_url()) . $pay['logo'] : $pay['logo'];

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Tagged: 

This topic contains 6 replies, has 2 voices.

Last updated by ioannisP-26 1 year, 5 months ago.

Assisted by: Ahmed Mohammed.

Author Posts
June 15, 2023 at 7:34 pm #13835179

ioannisP-26

Hello,

hidden link

While in the default language the payment icons look fine, in the translations they look like the image I send.

For the translations I use the WPML plugin and it automatically creates a new path for the image, but there is no image.

hidden link

Can we find a solution to the problem?

Thanks!

img-problem.jpg
June 16, 2023 at 9:21 am #13837903

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+02:00)

Hi there,

Thank you for contacting WPML support!

I've noticed that the payment icons aren't functioning properly in the secondary languages, while the other images seem to be working fine.

The issue seems to be originating from the plugin "VikRentCar". I created this sandbox website: hidden link - please login using that quick URL, upload the plugin and replicate the issue so that we can take a look into this and see what is happening.

Looking forward to hearing back from you.

June 16, 2023 at 9:41 am #13838125

ioannisP-26

For the vik.ret.car plugin works, must be in pro version. I have to pay for it to be able to use it. It would be easier to give you a temporary admin password for the existing site.

Is there any way I can send you those codes?

June 16, 2023 at 10:01 am #13838391

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+02:00)

Hi there,

Sure! I understand.

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue.

You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private, meaning only you and I can see and access it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved, I will delete the local site. Let me know if this is ok with you.

IMPORTANT

- Please backup site files and database before providing us access.
- If you do not see the wp-admin/FTP fields, your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box.

The private box looks like this:
hidden link

Looking forward to hearing back from you.

June 19, 2023 at 9:59 am #13849843

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+02:00)

Hi there,

Thank you for providing the login details.

As expected, the issue is originating from the plugin "VikRentCar". You can follow the workaround to fix the issue on your website and then contact the plugin's author to apply the fix permanently.

Please go to "wp-content/plugins/vikrentcar/site/views/oconfirm/tmpl/default.php", replace the following

$pay['logo'] = strpos($pay['logo'], 'http') === false ? JUri::root() . $pay['logo'] : $pay['logo'];

with

$pay['logo'] = strpos($pay['logo'], 'http') === false ? trailingslashit(get_site_url()) . $pay['logo'] : $pay['logo'];

Please let us know how it goes.

Looking forward to hearing back from you.

June 19, 2023 at 5:54 pm #13853929

ioannisP-26

Thank you! You are the Boss!