Please make sure to update to WPML 4.3.4 before reporting any issue

Hi, Amit here, I am the WPML Support Manager, our current ticket queue is high, update your WPML plugins and make sure you meet the minimal requirements for running WPML before reporting an issue please - many tickets are resolved doing that

Please look at our updated list of Known Issues and you can also use our support search to find helpful information and of course review our documentation before opening a ticket.

If you do need to open a ticket please make sure to provide us with all the needed information as described in this page

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

Last updated by Lauren 1 year, 2 months ago.

Assigned support staff: Lauren.

Author Posts
August 21, 2018 at 9:02 am #2662319

purchased-2

Dear WPML support team,

I found some information on https://wpml.org/forums/topic/multilangual-cms-error-with-php-7-2/ but still, some messages persist.

Are the plug-ins fully compatible with PHP 7.x?

After running the code against WP Compatibility Checker https://wordpress.org/plugins/php-compatibility-checker/ or Code Sniffer hidden link with the PHPCompatibility sniffs hidden link , it generates some warnings:


========================================
== wpml-string-translation- 2.8.5
========================================

FILE: ...ools\blogs\wp-content\plugins\wpml-string-translation\plugin.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 1 | WARNING | File has mixed line endings; this may cause incorrect
   |         | results
----------------------------------------------------------------------


========================================
== sitepress-multilingual-cms - 4.0.5
========================================

FILE: ...ess-multilingual-cms\docs\theme-integration\wpml-integration.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 28 | WARNING | The "result" parameter for function parse_str() is
    |         | missing. Passing this parameter is no longer
    |         | optional. The optional nature of the parameter is
    |         | deprecated since PHP 7.2
----------------------------------------------------------------------


FILE: ...ess-multilingual-cms\inc\utilities\wpml-data-encryptor.class.php
----------------------------------------------------------------------
FOUND 15 ERRORS AFFECTING 3 LINES
----------------------------------------------------------------------
 55 | ERROR | Function mcrypt_create_iv() is deprecated since PHP 7.1
    |       | and removed since PHP 7.2; Use random_bytes() or
    |       | OpenSSL instead
 55 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and
    |       | removed since PHP 7.2; Use openssl (preferred) or
    |       | pecl/mcrypt once available instead
 55 | ERROR | Function mcrypt_get_iv_size() is deprecated since PHP
    |       | 7.1 and removed since PHP 7.2; Use OpenSSL instead
 55 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and
    |       | removed since PHP 7.2; Use openssl (preferred) or
    |       | pecl/mcrypt once available instead
 55 | ERROR | The constant "MCRYPT_RIJNDAEL_256" is deprecated since
    |       | PHP 7.1 and removed since PHP 7.2
 55 | ERROR | The constant "MCRYPT_MODE_ECB" is deprecated since PHP
    |       | 7.1 and removed since PHP 7.2
 55 | ERROR | The constant "MCRYPT_RAND" is deprecated since PHP 7.1
    |       | and removed since PHP 7.2
 69 | ERROR | Function mcrypt_encrypt() is deprecated since PHP 7.1
    |       | and removed since PHP 7.2; Use OpenSSL instead
 69 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and
    |       | removed since PHP 7.2; Use openssl (preferred) or
    |       | pecl/mcrypt once available instead
 69 | ERROR | The constant "MCRYPT_RIJNDAEL_256" is deprecated since
    |       | PHP 7.1 and removed since PHP 7.2
 69 | ERROR | The constant "MCRYPT_MODE_ECB" is deprecated since PHP
    |       | 7.1 and removed since PHP 7.2
 88 | ERROR | Function mcrypt_decrypt() is deprecated since PHP 7.1
    |       | and removed since PHP 7.2; Use OpenSSL instead
 88 | ERROR | Extension 'mcrypt' is deprecated since PHP 7.1 and
    |       | removed since PHP 7.2; Use openssl (preferred) or
    |       | pecl/mcrypt once available instead
 88 | ERROR | The constant "MCRYPT_RIJNDAEL_256" is deprecated since
    |       | PHP 7.1 and removed since PHP 7.2
 88 | ERROR | The constant "MCRYPT_MODE_ECB" is deprecated since PHP
    |       | 7.1 and removed since PHP 7.2
----------------------------------------------------------------------


FILE: ...logs\wp-content\plugins\sitepress-multilingual-cms\sitepress.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 1 | WARNING | File has mixed line endings; this may cause incorrect
   |         | results
----------------------------------------------------------------------


FILE: ...itepress-multilingual-cms\vendor\twig\twig\lib\Twig\Compiler.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
----------------------------------------------------------------------
 218 | WARNING | INI directive 'mbstring.func_overload' is deprecated
     |         | since PHP 7.2
----------------------------------------------------------------------


FILE: ...s\sitepress-multilingual-cms\vendor\twig\twig\lib\Twig\Lexer.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
----------------------------------------------------------------------
 87 | WARNING | INI directive 'mbstring.func_overload' is deprecated
    |         | since PHP 7.2
 91 | WARNING | INI directive 'mbstring.func_overload' is deprecated
    |         | since PHP 7.2
----------------------------------------------------------------------


========================================
== wpml-translation-management - 2.6.5
========================================

FILE: ...ation-management\res\js\listing\templates\listing-group-view.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 21 WARNINGS AFFECTING 21 LINES
----------------------------------------------------------------------
  6 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%= TJ.last_update %></h4>
  7 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%= TJ.batch_name ? '<p>
  9 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <% if(TJ.tp_batch_id && TJ....
 21 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%= TJ.tp_batch_id%>"/>
 23 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <% } %>
 35 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%=TJ.how_many%></span>
 36 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%=TJ.show_out_of%>;">
 38 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%=TJ.show_out_of%>;"><%=TJ...
 44 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%=TJ.show_previous%>;">
 49 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%=TJ.show_remaining%>;">
 53 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%
 58 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%
 63 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%= percentage.toFixed(2) +...
 65 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <% }); %>
 68 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%
 70 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%
 76 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%
 80 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%= language_items.length %...
 82 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%
 87 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%
 96 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%=TJ.url%>"><%=TJ.name%></...
----------------------------------------------------------------------


FILE: ...anagement\res\js\listing\templates\listing-listing-navigator.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
----------------------------------------------------------------------
 5 | WARNING | Possible use of ASP style opening tags detected. ASP
   |         | style opening tags have been removed in PHP 7.0.
   |         | Found: <% if( !TJ.show_all ) { %>
 7 | WARNING | Possible use of ASP style opening tags detected. ASP
   |         | style opening tags have been removed in PHP 7.0.
   |         | Found: <%} else {%>
 9 | WARNING | Possible use of ASP style opening tags detected. ASP
   |         | style opening tags have been removed in PHP 7.0.
   |         | Found: <% } %>
----------------------------------------------------------------------


FILE: ...lation-management\res\js\listing\templates\listing-post-view.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 11 WARNINGS AFFECTING 11 LINES
----------------------------------------------------------------------
  1 | WARNING | No PHP code was found in this file and short open
    |         | tags are not allowed by this install of PHP. This
    |         | file may be using short open tags but PHP does not
    |         | allow them.
  4 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%	if(TJ.translation_servic...
  5 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%= TJ.translation_id %>">
  6 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <% } %>
  8 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%= TJ.id %></td>
  9 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%= TJ.original_url %>"><%=...
 10 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%- TJ.lang_text %></td>
 11 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <% if( TJ.status === 'Compl...
 12 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%= TJ.translation_edit_url...
 17 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%= TJ.deadline_date %></td...
 18 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%= TJ.translator_html %></...
----------------------------------------------------------------------


FILE: ...tion-management\res\js\listing\templates\listing-string-view.php
----------------------------------------------------------------------
FOUND 0 ERRORS AND 10 WARNINGS AFFECTING 10 LINES
----------------------------------------------------------------------
  1 | WARNING | No PHP code was found in this file and short open
    |         | tags are not allowed by this install of PHP. This
    |         | file may be using short open tags but PHP does not
    |         | allow them.
  4 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%	if(TJ.translation_servic...
  5 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%= 'string|' + TJ.translat...
  6 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <% } %>
  8 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%= TJ.id %></td>
  9 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%= TJ.name %>: <strong><%=...
 10 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%- TJ.lang_text %></td>
 11 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%= TJ.status %></td>
 12 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%= TJ.deadline_date %></td...
 13 | WARNING | Possible use of ASP style opening tags detected. ASP
    |         | style opening tags have been removed in PHP 7.0.
    |         | Found: <%= TJ.translator_html %></...
----------------------------------------------------------------------

Do you know if a review / fix is planned?

Thanks a lot,

Best regards.

Alexandre

August 21, 2018 at 5:11 pm #2664101

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

Thank you for contacting WPML support. I'll be happy to help you with this.

As of our latest release, WPML should be fully compatible with PHP 7.2. Can you please tell me specifically which error are seeing, and where on your site you are setting it? Is it on the front end or backend, and what are the steps leading up to the error?

August 22, 2018 at 5:54 am #2665787

purchased-2

Dear WPML support,

They are not visible on site.

The warnings / errors are shown when auditing the code with the following tools: WP Compatibility Checker https://wordpress.org/plugins/php-compatibility-checker/ or Code Sniffer hidden link with the PHPCompatibility sniffs hidden link .

Best regards,

Alexandre 8)

August 22, 2018 at 3:14 pm #2667237

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

I'm going to escalate this ticket to our developers. Could you provide access to your site so that they can login and check settings as needed? I have marked the next reply as private so that only you and I will have access to the reply. Thanks!

August 23, 2018 at 5:55 am #2668838

purchased-2

Dear Lauren,

The WP admin / FTP accesses are not required to deal with this issue.

Simply pass the information to the developers they will know what to do with it.

Best regards,

Alexandre 8)

August 23, 2018 at 2:57 pm #2670632

Lauren
Supporter

Languages: English (English )

Timezone: America/New_York (GMT-05:00)

I have escalated this ticket to our developers and they are currently working to resolve the warnings.