Skip Navigation

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

Last updated by Bigul 2 years, 2 months ago.

Assigned support staff: Bigul.

Author Posts
July 27, 2019 at 4:22 pm #4293927

Alessandro

Good morning Bigul,
we are near to the solution. We have completly unistalled the plugin, reinstalled the last version and we have added Your snippet that You prevously given to us.
Now You can take a look to this link:
hidden link
And You can use like example this listing:
hidden link
Everything apparently seems to work like a charm but the problem persist ONLY on single listing page (this may help You to find a sort of solution or to the analysis).
The problem is about the button add review (in attachment) You can find the option at the bottom of the single listing page contained in tab.
I hope this help to figure out this problem and close defitetly this topic. Thank You for ALL Your precious support
Regards
Ale

July 27, 2019 at 4:41 pm #4293961

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi Ale,

Welcome to the WPML support forum. I will do my best to help you to resolve these issues.

We are trying to reproduce the issue in a fresh instillation as a part of our escalation process. So one doubt how we can enable the *Review* tab for the listing.

Please check the following test post link for more details.

hidden link

--
Thanks!

Bigul

July 27, 2019 at 5:23 pm #4293997

Alessandro

Good evening Bigul,
from control panel of wordpress You have to go to Directory Admin > General Settings and activate Ratings & reviews addon.
Please if You need more information don't hesitate to ask for.
By the way ONLY in single listing page (the others works great) the catgory link and tags don't work too (permalink error that give ovously 404).
Warm regards
Ale

July 28, 2019 at 7:29 am #4294953

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi Ale,

Thank you for the updates. But I am not able to activate *Ratings & reviews addon* module because of the licence verification. So can you please share the licence details, if you are using a multiple site licence.

Please check the attached image for more details. I am enabling the private option for the next reply.

--
Thanks!

Bigul

2019-07-28_1257.png
July 28, 2019 at 7:55 am #4295063

Alessandro

Good morning Bigul,
we cannot share the license beacuse it's a single lic not multiple...
How can we proceed?
I can be more precise to help You to identify the issue:
I inspected the al lthe files of the plugin and I discovered that in the files >
path: w2dc/addons/w2dc_ratings/templates/review_single.tpl.php
statement (10)
<a class="w2dc-edit-review-link w2dc-btn w2dc-btn-primary" href="<?php echo w2dc_get_edit_review_link($review->post->ID); ?>" rel="nofollow" data-toggle="w2dc-tooltip"

path: w2dc/addons/w2dc_ratings/templates/reviews_template.tpl.php
statement (4)
<a class="w2dc-edit-review-link w2dc-btn w2dc-btn-primary" href="<?php echo w2dc_get_add_review_link($listing->post->ID); ?>" rel="nofollow"><?php _e('Add Review', 'W2DC

path: w2dc/addons/w2dc_ratings/templates/reviews_page.tpl.php
statement (6)
<a class="w2dc-edit-review-link w2dc-btn w2dc-btn-primary" href="<?php echo w2dc_get_add_review_link($listing->post->ID); ?>" rel="nofollow"><?php _e('Add Review', 'W2DC')

This files are used to render for example the link to add the review.
The issue is only on the single listing page so I suppose that it would enough to fix the file located in > w2dc/addons/w2dc_ratings/templates/review_single.tpl.php

But I don't understand why in this page WPML stop to work correctly.
In addition I provide You here the configuration of the .htaccess (may be is involved in some way):

#RewriteEngine On
#RewriteCond %{SERVER_PORT} 80
#RewriteRule ^(.*)$ hidden link [R=301,L]

#RewriteEngine On
#RewriteCond %{SERVER_PORT} 80
#RewriteRule ^(.*)$ hidden link [R=301,L]

# FIX ICON LOADED VIA HTTPS
<IfModule mod_headers.c>
<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|font.css|css|js)$">
Header set Access-Control-Allow-Origin "*"
</FilesMatch>
</IfModule>

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
# LBROWSERCSTART Browser Caching
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/gif "access 1 year"
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType image/x-icon "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType text/javascript "access 1 month"
ExpiresByType text/html "access 1 month"
ExpiresByType application/javascript "access 1 month"
ExpiresByType application/x-javascript "access 1 month"
ExpiresByType application/xhtml-xml "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresDefault "access 1 month"
</IfModule>
# END Caching LBROWSERCEND

# Wordfence WAF
<IfModule LiteSpeed>
php_value auto_prepend_file '/home/wlbyazic/public_html/wordfence-waf.php'
</IfModule>
<IfModule lsapi_module>
php_value auto_prepend_file '/home/wlbyazic/public_html/wordfence-waf.php'
</IfModule>
<Files ".user.ini">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order deny,allow
Deny from all
</IfModule>
</Files>

# END Wordfence WAF

Let me know if You need other info.
Waiting for an Your kind reply
Ale

July 28, 2019 at 8:19 am #4295177

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi Ale,

Thank you for the details. I will share the information with our compatibility team and get back to you as early as possible. Please wait.

--
Thanks!

Bigul

July 29, 2019 at 2:34 pm #4300939
Alessandro

Good morning Bigul,
I just want to report You another thing that I have noticed on the webserver.
In the root of wordpress in the error file log it reports a lot of errors like the following:
PHP Warning: preg_match(): Unknown modifier '(' in /home/wlbyazic/public_html/wp-content/plugins/sitepress-multilingual-cms/inc/absolute-links/absolute-links.class.php on line 176
Then WPML is involved in some way..
Waiting for an Your kind reply
Ale

New threads created by Bigul and linked to this one are listed below:

https://wpml.org/forums/topic/hp-warning-preg_match-unknown-modifier/

July 29, 2019 at 6:34 pm #4302911

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi Ale,

Thank you for the updates. I have opened a new ticket for the PHP warning issue for the easy tracking. Will get back to you soon on the new ticket. Please wait. Thank you for the understanding.

--
Thanks!

Bigul

July 30, 2019 at 6:47 am #4305069

Alessandro

Hi Bigul,
yesterday we noticed some change done on live stage of website so we are constrained to delete Your temporary account. If You are able to fix the problem we are glad to help You. If You can't fix what we posted no problem please close the ticket.
Thank You for Your support
Ale

July 30, 2019 at 1:33 pm #4308029

Bigul
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hi Ale,

Thank you for the updates. For your kind information, our compatibility team has contacted the plugin author regrading all the compatible issues we are facing now. I will update you the progress when we have an update on this. Please wait.

--
Thanks!

Bigul

The topic ‘[Closed] add review link is not working’ is closed to new replies.