Home › Forums › Jevelin Theme › hooks.php contains a malicious code pattern
Home › Forums › Jevelin Theme › hooks.php contains a malicious code pattern
Hello,
On the site: StateRequirement
Jetpack is giving a potential threat error after updating to the latest version of Jevelin:
<h2 class=”card-heading”>The file <code class=”threat-item-header__alert-filename”>hooks.php contains a malicious code pattern</h2>
<div class=”log-item__subheader”>Threat found (<span class=”threat-item-subheader__alert-signature”>PHP.Generic.BadPattern.6</span>)</div>
Threat found in file: /var/www/html/wp-content/themes/jevelin/inc/hooks.php
<div class=”marked-lines__line-numbers”>
<div class=”marked-lines__line-number”>’jevelin-unyaon-rgba-fix’,</div>
</div>
<div class=”marked-lines__lines”>
<div class=”marked-lines__line marked-lines__marked-line”>’_fw_option_type_’ . <mark class=”marked-lines__mark”>str_replace( ‘-‘, ‘_’, ‘rgba-color-picker’ )</mark> . ‘_localized’,</div>
<div class=”marked-lines__line”>array( ‘l10n’ => array( ‘reset_to_default’ => esc_html__( ‘Reset’, ‘fw’ ) ) )</div>
</div>
Could you please help to remove this issue? Thanks!
I hope you are well today and thank you for your question.
This can be due to a virus attack on your web server so I recommend you to scan for virus and reinstall the below latest version of the theme.
Please login to access this file
If you are still facing the issue then could you please share the screenshot of the screen where you are getting it?
Best regards,
Shufflehound team
I see the below code on line number 915 of the theme file /jevelin/inc/hooks.php but I don’t see any issue with that code still I have notified the theme developer to change it that will be done in the future version of the theme.
'_fw_option_type_' . str_replace( '-', '_', 'rgba-color-picker' ) . '_localized',
In the meantime, you can fix it by changing the above shared code as below.
'_fw_option_type_rgba_color_picker_localized',
Thanks for letting me know!
You are most welcome here 🙂
Just a heads up:
After installing the most recent version of the Jevelin Theme, the same “Threat” is being flagged by Jetpack in the admin.php file.
See attached image for details.
Thanks!
I have also notified this to the theme developer so that it will be fixed.
The issue is resolved in the below latest version of theme so please update the theme as described here https://support.shufflehound.com/updating-theme/
Please login to access this file
If you need services beyond standard support, we've got your back!
If you'd prefer not to handle the installation yourself or need help getting started, we'll set everything up for you.
We'll help you rearrange sections, adjust spacing, and modify the page structure to fit your needs.
More complex styling changes, theme option modifications, and third-party integrations.
If you need something that's not included in the theme, we can code it for you.
Web design services to create custom sections, pages, and blocks for your theme, plus graphics and visualizations.
Full website builds, custom theme development, or plugin creation from scratch.
We'll provide a clear quote based on what you need. No hidden fees.