Skip Navigation

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

Problem:
If you're experiencing a 500 internal server error when clicking the "Original anzeigen" link in WPML > Translation Management > Aufträge, and the URL appears malformed like this:

https://www.studium.uni-mainz.de/wp-admin/%3Ca%20href=%22https://www.studium.uni-mainz.de/?gf_page=preview&id=1%22%20target=%22_blank%22%3E%3C/a%3E

, it's likely due to an issue with HTML hyperlink formatting in the URL after upgrading to Gravity Forms Multilingual 1.8.0.
Solution:
We recommend modifying the code in your Gravity Forms Multilingual plugin. Specifically, you should edit the file located at

.../wp-content/plugins/gravityforms-multilingual/inc/gravity-forms-multilingual.class.php

.
Find the line 267 and replace:

$post_view_link = sprintf( '<a href="%s" target="_blank">%s</a>', get_home_url() . '/?gf_page=preview&id=' . $form_id, $label );

with:

$post_view_link = get_home_url() . '/?gf_page=preview&id=' . $form_id;

This change should correct the URL and resolve the error.

Please note that this solution might be irrelevant if it's outdated or not applicable to your case. We highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the issue persists, please open a new support ticket.

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 3 replies, has 2 voices.

Last updated by Shekhar Bhandari 11 months, 4 weeks ago.

Assisted by: Shekhar Bhandari.

Author Posts
July 5, 2024 at 9:13 am #15897388

franzR-3

Background of the issue:
I am trying to click on the link "Original anzeigen" in WPML > Translation Management > Aufträge (may be Jobs? compare in the screenshot attached) in the title column. The link leads to a 500 internal server error due to a HTML hyperlink in the URL, like this: hidden link. If you correct the URL to hidden link, it works just fine. This happens after an upgrade from Gravity Forms Multilingual to 1.8.0. For your information: hidden link is the primary address of a WordPress Subsite in the Multisite cms.zdv.uni-mainz.de.

Symptoms:
I get a 500 internal server error due to a malformed HTML hyperlink in the URL. The Apache error log shows: 'Request exceeded the limit of 10 internal redirects due to probable configuration error. Use 'LimitInternalRecursion' to increase the limit if necessary. Use 'LogLevel debug' to get a backtrace.'

Questions:
Why does the link in WPML > Translation Management > Aufträge lead to a 500 internal server error?
How can I fix the malformed HTML hyperlink in the URL after upgrading to Gravity Forms Multilingual 1.8.0?

July 5, 2024 at 11:28 am #15898259

franzR-3

To answer Shekhar Bhandaris Question: "So if you don\'t click the view original error the internal server error doesn\'t occur right>?"

Yes, that is right.

July 8, 2024 at 6:13 am #15909999

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

I have escalated your issue to our compatibility team, I will update you as soon as I will receive any feedback from them.

Thanks

July 10, 2024 at 8:28 am #15926517

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hello there,

Our compatibility team suggested the following workarround:
- Edit .../wp-content/plugins/gravityforms-multilingual/inc/gravity-forms-multilingual.class.php file.

Look for line 267.

Change this line:

$post_view_link = sprintf( '<a href="%s" target="_blank">%s</a>', get_home_url() . '/?gf_page=preview&id=' . $form_id, $label );

For:

$post_view_link =  get_home_url() . '/?gf_page=preview&id=' . $form_id;

Let me know if this helps.

Thanks

July 10, 2024 at 2:51 pm #15928774

franzR-3

This will be fixed in the next release, I assume?