Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Forum: Fixing WordPress
    In reply to: website malware

    Faced this problem in few sites of my client. Fixed it by removing the script code from the site.

    The malicious string is the same for every compromised file, so mostly downloading whole project from FTP, and then CTRL+SHIFT+F all files in project for the phrase you pasted should make your day. – You can also look for it in the Database using various combination of searches using for example https://pl.ww.wp.xz.cn/plugins/search-and-replace/

    I have found the malicious code also in my own custom post type body( the_content() )

    After that I’d recommend to:

      clean up your PC and browsers’ extensions as they could be the main security-hole
      define( 'DISALLOW_FILE_EDIT', true ); in wp-config
      Change your database password
      Check if all WP User accounts and their e-mails are known to you. If not, just suspend or delete them.
      Install some basic security for WP
      Ask your hosting company to help you by installing anti-virus on the server(or just launching you the option – this may be extra – billed for you).

    There’s probably better way, but my solution led up to get free of viruses in short time(hope they don’t come back soon).

    • This reply was modified 6 years, 2 months ago by sellmark.
    • This reply was modified 6 years, 2 months ago by sellmark.

    In the new GTAG method there’s no clear statement which one is conversion ID or Label.

    Where to look for it?

    <script>
    gtag(‘event’, ‘conversion’, {
    ‘send_to’: ‘AW-XXXXX1111/WxSNCMvO-o8BEOCv7_IC’,
    ……….
    });
    </script>

    Are they like that?
    ID: AW-XXXXX1111
    Label: WxSNCMvO-o8BEOCv7_IC

    How comes that none of custom registered image sizes work, also there’s a problem with an array given dimensions..

    Pre-defined sizes like ‘medium’ or ‘thumbnail’ work well.

    $loop = new WP_Query($args); 
    if($loop->have_posts()) : ?>
      	<?php while($loop->have_posts()) : $loop->the_post(); ?>
            <?php $imgthumb = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), 'medium'); //works
    $imgsrc = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()),'galerry'); //doesn't work
    $imgsrc2 = wp_get_attachment_image_src(get_post_thumbnail_id(get_the_ID()), array(300,250)); //doesn't work

    These that don’t work bahave like ‘full’ size of image

    And yes, I know what I’m doing with the return of wp_get_attachment_src

    For example:

    <a href="<?php echo $imgsrc[0]; ?>" itemprop="contentUrl" data-size="<?php echo $imgsrc[1] , 'x', $imgsrc[2]?>" data-index="0">
    <img src="<?php echo $imgthumb[0]; ?>" height="<?php echo $imgthumb[2]; ?>" width="<?php echo $imgthumb[1]; ?>" itemprop="thumbnail" alt="<?php  ?>" />
    </a>
    • This reply was modified 8 years, 9 months ago by sellmark.
    • This reply was modified 8 years, 9 months ago by sellmark.

    How am I supposed to test Repeater compatibility, if on your Trial there’s a free version of ACF that doesnt support Repeater.

    Does your PRO version of plugin support ACF import with it’s PRO functionalities like repeater field? What about Object-post field does it select it correctly?

Viewing 5 replies - 1 through 5 (of 5 total)