Forum Replies Created

Viewing 12 replies - 1 through 12 (of 12 total)
  • The solution from Elementor team reminds me on Serbian government solution when they have had larger doses of aflatoxine in milk due to big drought that year, they simply lifted permitted doses 100 times until that milk didn’t pass the test.

    So, yeah, just turn off error reporting and you won’t see the error ?? ?? ??

    Hello, running into the very same issue, please help.
    Because of the error, some other js features (which are not part of this plugin) does not load on “add testimonial” page.
    Please help.

    Mine example: https://tinyurl.com/mryk7jzy (inspect console and you can see the error). When I deactivate Strong testimonials plugin, parallax and other JS features work again.

    (ps: All plugins and WP core are updated to latest versions, all caches cleared)

    • This reply was modified 2 years, 3 months ago by acamilicko.
    Thread Starter acamilicko

    (@acamilicko)

    Ok, thank you Salvatore and Saumya, obviously it is working no matter the test screen.
    Cheers!
    Aleksandar

    Thread Starter acamilicko

    (@acamilicko)

    Here’s the newest log, after all settings being applied, I still got cf status HIT and still the error comes up (just now, after the update, it looks graphically nicer ?? )
    Speed of the site improved much on gtmetrix, obviously caching works, but I am concerned why the error doesn’t wanna go…

    
      array (
        'server' => 'nginx',
        'date' => 'Wed, 09 Dec 2020 15:18:11 GMT',
        'content-type' => 'text/html; charset=UTF-8',
        'content-length' => '19106',
        'cache-control' => 's-maxage=604800, max-age=60',
        'x-wp-cf-super-cache' => 'cache',
        'x-wp-cf-super-cache-active' => '1',
        'x-wp-cf-fallback-cache' => '1',
        'x-wp-cf-super-cache-cache-control' => 's-maxage=604800, max-age=60',
        'vary' => 'Accept-Encoding',
        'content-encoding' => 'gzip',
      ),
    ))
    [2020-12-09 15:18:11] [cloudflare::get_cloudflare_cookie] No cookies found in response HTTP packet
    [2020-12-09 15:18:11] [cloudflare::page_cache_test] Start test to https://www.ingeniousitems.shop/wp-content/plugins/wp-cloudflare-page-cache/assets/testcache.html with headers Array
    (
        [timeout] => 10
        [sslverify] => 
        [user-agent] => Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0
        [headers] => Array
            (
                [Accept] => text/html
            )
    
    )
    
    [2020-12-09 15:18:11] [cloudflare::page_cache_test] Response Headers: Requests_Utility_CaseInsensitiveDictionary::__set_state(array(
       'data' => 
      array (
        'server' => 'nginx',
        'date' => 'Wed, 09 Dec 2020 15:18:11 GMT',
        'content-type' => 'text/html',
        'content-length' => '160',
        'last-modified' => 'Tue, 08 Dec 2020 22:33:51 GMT',
        'etag' => '"ba-5b5fb8977ee9d-gzip"',
        'accept-ranges' => 'bytes',
        'vary' => 'Accept-Encoding',
        'content-encoding' => 'gzip',
      ),
    ))
    
    Thread Starter acamilicko

    (@acamilicko)

    Sorry, this is the entire:

    [2020-12-08 00:38:34] [cloudflare::page_cache_test] Response Headers: Requests_Utility_CaseInsensitiveDictionary::__set_state(array(
       'data' => 
      array (
        'server' => 'nginx',
        'date' => 'Tue, 08 Dec 2020 00:38:34 GMT',
        'content-type' => 'text/html; charset=UTF-8',
        'content-length' => '23689',
        'link' => '<https://www.ingeniousitems.shop/wp-json/>; rel="https://api.w.org/", <https://www.ingeniousitems.shop/wp-json/wp/v2/pages/27928>; rel="alternate"; type="application/json", <https://www.ingeniousitems.shop/>; rel=shortlink',
        'cache-control' => 's-max-age=604800, s-maxage=604800, max-age=60',
        'x-wp-cf-super-cache' => 'cache',
        'x-wp-cf-super-cache-active' => '1',
        'x-wp-cf-super-cache-cache-control' => 's-max-age=604800, s-maxage=604800, max-age=60',
        'vary' => 'Accept-Encoding',
        'content-encoding' => 'gzip',
      ),
    ))
    [2020-12-08 00:38:34] [cloudflare::get_cloudflare_cookie] No cookies found in response HTTP packet
    [2020-12-08 00:38:34] [cloudflare::page_cache_test] Start test to https://www.ingeniousitems.shop/wp-content/plugins/wp-cloudflare-page-cache/assets/testcache.html with headers Array
    (
        [timeout] => 10
        [sslverify] => 
        [user-agent] => Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:59.0) Gecko/20100101 Firefox/59.0
        [headers] => Array
            (
                [Accept] => text/html
            )
    
    )
    
    [2020-12-08 00:38:34] [cloudflare::page_cache_test] Response Headers: Requests_Utility_CaseInsensitiveDictionary::__set_state(array(
       'data' => 
      array (
        'server' => 'nginx',
        'date' => 'Tue, 08 Dec 2020 00:38:34 GMT',
        'content-type' => 'text/html',
        'content-length' => '160',
        'last-modified' => 'Mon, 07 Dec 2020 22:32:33 GMT',
        'etag' => '"ba-5b5e766fcbe0e-gzip"',
        'accept-ranges' => 'bytes',
        'vary' => 'Accept-Encoding',
        'content-encoding' => 'gzip',
      ),
    ))
    Thread Starter acamilicko

    (@acamilicko)

    This is the last one from last night, there are several of those in entire log:

    [2020-12-08 00:38:34] [cloudflare::page_cache_test] Response Headers: Requests_Utility_CaseInsensitiveDictionary::__set_state(array(
       'data' => 
      array (
        'server' => 'nginx',
        'date' => 'Tue, 08 Dec 2020 00:38:34 GMT',
        'content-type' => 'text/html',
        'content-length' => '160',
        'last-modified' => 'Mon, 07 Dec 2020 22:32:33 GMT',
        'etag' => '"ba-5b5e766fcbe0e-gzip"',
        'accept-ranges' => 'bytes',
        'vary' => 'Accept-Encoding',
        'content-encoding' => 'gzip',
      ),
    ))
    Thread Starter acamilicko

    (@acamilicko)

    Hey @isaumya can’t locate debug.log. Is it in plugin’s folder somewhere?

    Thread Starter acamilicko

    (@acamilicko)

    Hey @isaumya
    Yeah, dev mode is off all the time, and all A records are proxied, no worries.
    By disabling many plugins I have managed to successfully have now cf-cache-status: HIT, but in your plugin on click test cache it still has the old “Page caching seems not to be working” message…

    Thread Starter acamilicko

    (@acamilicko)

    Thank you for a so quick answer.
    I’ve stripped cookies, but still it is the same.
    I will definitely go once again through all settings and check again until I get the result again. Please don’t close topc, I’ll be back! ??

    Thread Starter acamilicko

    (@acamilicko)

    Hi Aurovrata,

    the above code didn’t work at all… After several days of trying a number of combinations, here is a code that works:

    require_once(ABSPATH . 'wp-admin/includes/image.php');
    require_once(ABSPATH . 'wp-admin/includes/media.php');
    require_once(ABSPATH . 'wp-admin/includes/file.php');
    	
    	
    $file_path = ABSPATH . "wp-content/uploads/attorney_images/" . $filename;
    	
    if (move_uploaded_file($file, $file_path)) {
    		
    	chmod($file_path, 0755);
    		
    	$filetype = wp_check_filetype( basename( $file_path ), null );
    
    	// Get the path to the upload directory.
    	$wp_upload_dir = wp_upload_dir();
    
    	// Prepare an array of post data for the attachment.
    	$attachment = array(
    	'guid'           => $wp_upload_dir['url'] . '/' . basename( $file_path ), 
    	'post_mime_type' => $filetype['type'],
    	'post_title'     => preg_replace( '/\.[^.]+$/', '', basename( $file_path ) ),
    	'post_content'   => '',
    	'post_status'    => 'inherit'
    		);
    
    // Insert the attachment.
    	$attach_id = wp_insert_attachment( $attachment, $file_path, $post_id );
    
    	// Generate the metadata for the attachment, and update the database record.
    	$attach_data = wp_generate_attachment_metadata( $attach_id, $file_path );
    	wp_update_attachment_metadata( $attach_id, $attach_data );
    		
    	exec ("find " . ABSPATH . "wp-content/uploads/attorney_images/ -type f -exec chmod 0755 {} +");
    	set_post_thumbnail( $post_id, $attach_id );
    		
    	}
    • This reply was modified 7 years, 5 months ago by acamilicko.
    Thread Starter acamilicko

    (@acamilicko)

    Hi Aurovrata, thanks for your answer. This was mapping to existing CPT, so I couldn’t use that kind of mapping…

    Thread Starter acamilicko

    (@acamilicko)

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