Forum Replies Created

Viewing 15 replies - 1 through 15 (of 55 total)
  • Thread Starter dennis8

    (@dennis8)

    Hmm, I actually uploaded a php.ini file with max settings that the server allows. But that also didn’t change anything. What I find really strange is that I also can’t get any readings from the phpinfo file. I placed it into the main folder but when I enter it in the browser nothing happens.
    https://www.usbmemorysticks.net/phpinfo.php

    Thread Starter dennis8

    (@dennis8)

    Anyone have any idea what could be causing this?

    Thread Starter dennis8

    (@dennis8)

    Its shared hosting. Of course they support PHP. Well, they should. I emailed them too but haven’t gotten a reply so far. I didn’t make any changes to the htaccess but here it goes:

    Options -Indexes
    
    # BEGIN W3 Total Cache
        SetEnvIfNoCase Accept-Encoding (gzip|deflate) APPEND_EXT=.$1
    
        RewriteEngine On
        RewriteCond %{REQUEST_URI} \/$
        RewriteCond %{REQUEST_URI} !(\/wp-admin\/|\/xmlrpc.php|\/wp-(app|cron|login|register).php|wp-.*\.php|index\.php) [OR]
        RewriteCond %{REQUEST_URI} (wp-comments-popup\.php|wp-links-opml\.php|wp-locations\.php) [NC]
        RewriteCond %{REQUEST_METHOD} !=POST
        RewriteCond %{QUERY_STRING} =""
        RewriteCond %{HTTP_COOKIE} !(comment_author|wp-postpass|wordpress_\[a-f0-9\]\+|wordpress_logged_in) [NC]
        RewriteCond %{HTTP_USER_AGENT} !(bot|ia_archive|slurp|crawl|spider) [NC]
        RewriteCond /home/valor88/public_html/wp-content/w3tc/pgcache/$1/_default_.html%{ENV:APPEND_EXT} -f
        RewriteRule (.*) wp-content/w3tc/pgcache/$1/_default_.html%{ENV:APPEND_EXT} [L]
    # END W3 Total Cache
    
    RewriteCond %{HTTP_HOST} ^usbmemorysticks.net
    RewriteRule (.*) https://www.usbmemorysticks.net/$1 [R=301,L]
    RewriteRule ^recent-flash-drive-posts$ / [R=301,L]
    RewriteRule ^recent-posts$ / [R=301,L]
    RewriteRule ^find-luxio-memory-sticks$ super-talent-luxio [R=301,L]
    RewriteRule ^find-super-talent-pico-memory-sticks$ super-talent-pico-flash-drives [R=301,L]
    RewriteRule ^find-patriot-memory-sticks$ patriot-flash-drives [R=301,L]
    RewriteRule ^find-128gb-memory-sticks$ 128gb-flash-drives [R=301,L]
    RewriteRule ^secure-kingston-datatraveler$ kingston-datatraveler-200-310-5000 [R=301,L]
    RewriteRule ^kingston-datatraveler-200-to-vault$ kingston-datatraveler-200-310-5000 [R=301,L]
    RewriteRule ^kingston-datatraveler-2$ kingston-datatraveler-200-310-5000 [R=301,L]
    RewriteRule ^sandisk-ultra-flash-drives$ sandisk-ultra [R=301,L]
    RewriteRule ^jetflash-300-620$ jetflash-300-700 [R=301,L]
    RewriteRule ^32gb-flash-drives$ /category/32gb-flash-drives [R=301,L]
    RewriteRule ^verbatim-flash-drives$ /category/verbatim-store-n-go-flash-drives [R=301,L]
    RewriteRule ^imation-flash-drives$ /category/imation-flash-drives [R=301,L]
    RewriteRule ^category/flash-drive-capacities/32gb-flash-drives$ /category/32gb-flash-drives [R=301,L]
    RewriteRule ^64gb-flash-drives$ /category/64gb-flash-drives [R=301,L]
    RewriteRule ^category/flash-drive-capacities/64gb-flash-drives$ /category/64gb-flash-drives [R=301,L]
    RewriteRule ^category/flash-drive-brands/corsair-flash-drives$ corsair-flash-drives [R=301,L]
    RewriteRule ^category/flash-drive-brands/imation-flash-drives$ category/imation-flash-drives [R=301,L]
    RewriteRule ^category/flash-drive-brands/adata-flash-drives$ /category/adata-flash-drives [R=301,L]
    RewriteRule ^category/flash-drive-brands/patriot-flash-drives$ patriot-flash-drives [R=301,L]
    RewriteRule ^category/flash-drive-brands/pny-flash-drives$ /category/pny-flash-drives [R=301,L]
    RewriteRule ^category/flash-drive-brands/lacie-flash-drives$ /category/lacie-flash-drives [R=301,L]
    RewriteRule ^category/flash-drive-brands/edge-flash-drives$ /category/edge-flash-drives [R=301,L]
    RewriteRule ^category/flash-drive-brands/kingmax-flash-drives$ /category/kingmax-flash-drives [R=301,L]
    RewriteRule ^category/flash-drive-brands/ocz-flash-drives$ /category/ocz-flash-drives [R=301,L]
    RewriteRule ^category/flash-drive-brands/lexar-jumpdrive-flash-drives$ /category/lexar-jumpdrive-flash-drives [R=301,L]
    RewriteRule ^category/flash-drive-brands/patriot$ /category/patriot [R=301,L]
    RewriteRule ^category/flash-drive-brands/hp-flash-drives$ /category/hp-flash-drives [R=301,L]
    RewriteRule ^category/flash-drive-brands/verbatim-store-n-go-flash-drives$ /category/verbatim-store-n-go-flash-drives [R=301,L]
    RewriteRule ^category/flash-drive-brands/centon-flash-drives$ /category/centon-flash-drives [R=301,L]
    RewriteRule ^category/flash-drive-brands/transcend-jetflash-drives$ /category/transcend-jetflash-drives [R=301,L]
    RewriteRule ^category/flash-drive-brands/super-talent-flash-drives$ /category/super-talent-flash-drives [R=301,L]
    RewriteRule ^category/flash-drive-brands/sandisk-flash-drives$ /category/sandisk-flash-drives [R=301,L]
    RewriteRule ^category/flash-drive-brands/pqi-flash-drives$ /category/pqi-flash-drives [R=301,L]
    RewriteRule ^category/flash-drive-brands/kingston-flash-drives$ /category/kingston-flash-drives [R=301,L]
    RewriteRule ^find-16mb-32mb-64mb-memory-sticks$ 16mb-32mb-64mb-flash-drives [R=301,L]
    RewriteRule ^find-bacon-and-chicken-flash-drives$ usb-bacon-and-chicken-flash-drives [R=301,L]
    RewriteRule ^find-thinnest-small-data-memory-sticks$ thinnest-small-data-flash-drives [R=301,L]
    RewriteRule ^find-usb-cake-cookie-memory-sticks$ usb-cookie-flash-drives [R=301,L]
    RewriteRule ^find-usb-strawberry-memory-sticks$ usb-strawberry-flash-drives [R=301,L]
    RewriteRule ^lexar-jumpdrive$ lexar-retrax-to-firefly [R=301,L]
    RewriteRule ^category/lexar-flash-drives$ /category/lexar-jumpdrive-flash-drives [R=301,L]
    RewriteRule ^category/transcend-flash-drives$ /category/transcend-jetflash-drives [R=301,L]

    I just removed the W3 Total Cache entries to see if that makes a difference – but nope.

    Thread Starter dennis8

    (@dennis8)

    Ok, let me paste only the viral part of the code. In the original index.php it says:

    [please mark your code using the (guess …) ‘code’ button – not blockquote; otherwise the code will get corrupted.]

    <div class="post-entry">
    <?php the_content('Read more...'); ?>
    </div>
    <div class="post-info">
    <?php comments_popup_link('Comments (0)', 'Comment (1)', 'Comments (%)'); ?> : <a>#respond">Add Comment</a>
    </div>

    I changed it to:

    <div class="post-entry">
    <?php the_content('Read more...'); ?>
    <?php edit_post_link('Edit this entry.','',''); ?>
    <?php comments_template(); ?>
    </div>

    Thanks!

    Thread Starter dennis8

    (@dennis8)

    Thanks for pointing this out, Frederick. In what template file at what line do I have to paste in that syntax?

    Thread Starter dennis8

    (@dennis8)

    Anyone?

    Thread Starter dennis8

    (@dennis8)

    Thanks for the reply, James.

    I can rule out my theme because these 500 errors only showed up recently. The only thing that changed before these errors started where some htaccess edits and installing of the shiba gallery plugin. I uninstalled the latter and things seem to be better. I only get the error occasionally now – but it happens to be rather a 503. Doesnt that have to do with server load memory?

    Its kinda hard to pinpoint if there could be anything wrong in the htaccess (mine is pretty long) but I reverted back to the one before I made the changes. Do you know if the regular wordpress part –>

    # 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

    needs to be in specific place in the htaccess, like top, middle or bottom? Before or after regular redirects? Remember I have the W3 cache plugin and it makes all kinds of entries in the htaccess. (Which never was a problem so far)

    As for server error logs – where could I access them? I’m on hostgator VPS level 3, with cpanel and WHM. Thanks,
    Dennis

    Thread Starter dennis8

    (@dennis8)

    In the original htaccess the huge blank space is between the last redirect and the “# BEGIN W3TC Skip 404 error handling by WordPress for static files”.

    Thread Starter dennis8

    (@dennis8)

    Do you mean older version of eAccelerator or of W3 plugin?

    Thread Starter dennis8

    (@dennis8)

    Javaman, hijacking a thread is not very nice. I dont appreciate it. Just have a little patience with your own thread(s), ok?

    Thread Starter dennis8

    (@dennis8)

    I just checked your site and noticed a few things. On a single post page the server is returning a status 200 OK for https://www.usbmemorysticks.net/wp-content/w3tc/min/725294/single.include.1437250770.js but the file only contains

    Failed to load source for: https://www.usbmemorysticks.net/wp-content/w3tc/min/725294/single.include.1437250770.js

    What would cause this?

    You might need to clear your page cache and minify cache to fix this.

    I did and when I follow your links to the js file, it doesnt give that failed message anymore.

    The comment form shows and I was able to submit a comment but not sure if it went through.

    Thanks for testing it out. Do you remember how long it took for the pate to reload after you submitted the comment? Your comment did go through, but you landed in the spam folder. I “unspammed” it and posted a reply. ??

    Also the js is the first file and its before the css which is causing a 3.8 second block before anything else can get downloaded. It’s not as bad on the home page but the js is first on every page.

    Change the embed location to non blocking <head> to fix that issue.

    Ok, I changed all to “non blocking head” but the loading time still seems to be the same (for commenting as well as just the page load). When I look up the page source the js still seems to be before the CSS. Is that because I have js to “Combine only before </body>”? Or could it be because I have CSS not minified? I can’t because CSS minification messes up my theme.

    The cookies are the normal cookies WordPress adds to all requests. It’s not a big deal but if you want to get rid of cookies on your static content you need to set up subdomain to serv static content. You can use W3 Total’s self hosted CDN features to serve the content. You will have to set up the subdomain in cpanel then enter the cname into W3 along with your ftp information and follow the instructions.

    To remove the cookies from the subdomain add this line to your config.php: define(‘COOKIE_DOMAIN’, ‘www.usbmemorysticks.net’);

    AskApache has a good article on setting up cookieless sub domains with WordPress

    Thanks for the information. I dont think I want to look into this right now, maybe at a later point. Main thing is that this doesnt cause any problems. Once again thanks!

    Thread Starter dennis8

    (@dennis8)

    When you disable any of the caching types comments work normally?

    I just went through all the options and disabling them one by one to see if anyone of them would make comments work again. And lo and behold, when I disable “Object caching” the comments go through again without the error page “Comments are closed”. So why is that? Is this normal? Remember, my comments are from the internal WP platform. Even though comments are working again I notice that it takes quite a while for them to go through, the loading times are sometimes beyond 10 secs. So something still seems wrong?

    Cookies are set by services like google analytics, so it’s suggested to host CSS/JS/images etc on a domain that does not have cookies for better performance.

    I dont have google analytics installed on my site. Either way, from what it sounds like its not like some cookies vital to the site arent working, right?

    Thread Starter dennis8

    (@dennis8)

    Thanks for your input, c3m.

    There was a bug in version 0.9.1.1 with the minify help screen but it didn’t effect the front end of the site and still combined the files.

    Upgrade to the latest version that should show as an upgrade in your dashboard.

    Ah thanks for pointing that out to me. I upgraded but unfortunately I still get that error when I turn on all the scripts. “Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/valor88/public_html/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCache.php on line 4180”
    What exactly is on line 4180? Hmm, the wepagetest.org results look very good now (e.g. 100% JS minify) but I notice that a couple of my plugins don’t work anymore like the commentluv or addthis. I have set jquery set to embed before body but it doesnt seem to matter whether I embed the other JS scripts non-blocking in head, blocking in head or the same with body. And whether I turn on the minification setting to “combine only before body” or have that turned off doesnt make a difference either. Sigh…

    Those are included js files that come with WordPress they are being enqueued by either your theme or a plugin. Also those are from WordPress 2.9

    When combining your js files jquery has to be the first one because all the other ones won’t work unless it is loaded. If you have any inline js which you do then jquery will have to go before <body> or none of the inline scripts will work.

    Ah, thanks for explaining that to me. This was a great help!

    Your header image shows up fine for me.

    Of course because at the time I had turn any minification off again (just like now). ?? It looks like when I minify and combine my CSS the header image disappears. There really seems to be some trouble with my CSS because wepagetest.org also tells me then that only 26% of my cookies are working properly. As soon as I turn the CSS settings off the cookies are back to 100%. What is this about? Most of these failed cookies come from images but also plugins JS.

    I guess I’m screwed, because it looks like neither JS or CSS can be successfully minified and combined. At least not for most of my scripts. ??

    Browser Cache settings: for css, js, and media files set expires headers lifetime to at least 3 months (7776000s) and for cache control policy use: cache with max-age

    I have done this. Would it also be wise to use the same headers lifetime and cache policy settings for html?

    Thread Starter dennis8

    (@dennis8)

    Ok but i dont understand how these things have to do with my header image? Why would my header image disappear?

    What does it have to do with this error message I got in the minify help settings? Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/valor88/public_html/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCache.php on line 4180

    What could the problematic JS be? Minfiy correctly detects the following plugins:
    Collapsing Categories, NextGen Gallery, Addthis and Commentluv.
    It also shows two JS items I am not able to associate:
    wp-includes/js/hoverIntent.js?ver=2.9.1 +
    wp-includes/js/jquery/jquery.js?ver=1.3.2

    It had all turned turned on with the pre-chosen template settings and no matter if set to embed in head or embed before body, it caused the above error message plus the header image disappearing from my blog.

    Or could the CSS be at fault here? I had all those turned on for the exception of WordBay. Meaning:
    NextGen Gallery, style and cl_style.

    I would really appreciate more help. Thanks!

    Thread Starter dennis8

    (@dennis8)

    I know that but I dont understand the template settings the help wizard preselects. For instance, it lists the addthis widget twice, one for “index” and one for “single”. Should it be just one for “all templates”?

    Anyhow, I went ahead with all the preselected template settings and chose non-blocking “embed before body” for each one. And what do you know? When my website loads the header image is now missing! And when I go back into the minify help wizard it shows ll the urls red and give me three time the error message “Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/valor88/public_html/wp-content/plugins/w3-total-cache/lib/W3/Plugin/TotalCache.php on line 4180”
    Upon this I tried “embed in head” instead but that didnt change anything. Whats going on? Needless to say Ive disabled minification for now.

    On a good note, gzip is working like a charm now. I tested the page I have linked earlier in this thread with the gzip tool and it says:
    Web page compressed? Yes
    Compression type? gzip
    Size, Markup (bytes) 110,276
    Size, Compressed (bytes) 15,011
    Compression % 86.4

    Sweet. ?? Now to get minify to work.

Viewing 15 replies - 1 through 15 (of 55 total)