Timthumb.php not working properly - php

Hi all please view this link below
http://petseden.net/?wpsc-product=dasdadsa
to those who are familar with php, when I used chrome and inspected the element, it seems that the thumbnail is not generated. Any idea why? I checked online, the cache and the script is chmod 755 and php_gd2.dll is installed. I have tried figuring this over a few days and checked online but to no avail.
Please help.
[edit] also, it might be helpful to know that when I tested the script locally on WAMP server, it works perfectly.

It looks as though WordPress mod_rewrite rules are causing a problem. Visiting the actual TimThumb links, here's what you get.
You need to add an additional rule into .htaccess to prevent the redirect occurring on the TimThumb script:
RewriteRule ^/wp-content/themes/mio/sp-framework/timthumb - [L]
You need to place this ahead of the WP rewrites.

Related

wordpress: ERR_TOO_MANY_REDIRECTS

My website is setup on a linux server and behind WAF. The files are placed in root folder of apache server. The .htaccess contains rules as specified by wordpress.
The issue is that when I try to access my website as https://www.example.com, it gives ERR_TOO_MANY_REDIRECTS error. But when I try to access the website as https://www.example.com/index.php, it loads and works perfectly fine.
The couple of things I tried to pinpoint the error:
Deleted all files and folders from root folder and created a test index.php file. When I tried to access https://www.example.com, it displayed the contents of this test file
I also tried deleting .htaccess but this didnt help
I am still unable to figure out what the issue is. Can anyone please help out?
disable all your plugins.
in your theme if you using redirect code in your functions or other page , use exit() or die() after your redirect code.
After trying a LOT of suggested solutions online, I fixed the issue by using the plugin Redirection. This plugin solved my issue within minutes!!
Here is the link to the article which helped me.

anchor taking user to root directory?

I have 3 files, packages.php, index.php and .htaccess.
packages (hastebin is down for me), index and .htaccess. This is live here. Currently, index works as you can see by the no .php extension and the extra slash. However, if you go into Packages -> Create or Manage Packages, it takes you to piggypiglet.me/packages. I have no clue why this is? It also redirects you there when trying to manually open https://www.piggypiglet.me/minepos/admin/packages. I've tried changing the anchor to ./packages but that didn't fix it. I'm really at a loss here, I have no clue what's causing it. Also, the .php extensions are necessary as I'll be using php in the files as soon as I get this issue fixed.
Your link to admin/packages currently works fine for me. Did you solve it? Otherwise I suspect your browser might be caching the redirect from some previous version ( [R=permanent] ). Another thing that comes to my mind is trying to play with RewriteBase.

WordPress Installation Within CakePHP

I am new to stackoverflow.
I have already installed a WordPress blog(WordPress version 3.9.2) within a CakePHP(CakePHP 1.3) site.
I have followed this link:
http://www.balistupa.com/blog/2010/08/how-to-redirect-appwebrootblog-into-blog-wordpress-cakephp/
Changed both the .htaccess files as mentioned in the link.
Its working perfectly.
But the problem is if I write the url like: www.mydomain.com/blog/ then its working perfectly
But if I write www.mydomain.com/blog, that means without a / at the end, it is still redirecting to www.mydomain.com/app/webroot/blog/.
Can anyone solve this out? Do I need to make any more changes to that .htaccess files?
The tutorial on that link says that if I wont write that / at the end it will be redirected to the proper url without any problem, but still its not working.

opencart corrupted menu in xampp

I copied my files for opencart store from my host and the db to work localy using xampp, but iam experiencing a little problem, the menu in the front end is broken it doesn't look structured.
The links works perfectly fine, i did change the config files to point to the correct folder, rewrite_module is on, changed #RewriteBase / so the links works fine.
I did even update opencart to make sure all files is there, but nothing i have tried is working.
Can someone please help me fix this problem? Have tried everything i can think of.
Iam using Opencart 1.5.6.4
you can see on the following image how the menus look bazaargadgets.com/corrupted menus.jpg
The CSS file isn't being loaded properly (or not at all).
Check to see If it does exist and not corrupted. Re-download anyway just to make sure.
If that doesn't solve your problem, look at the http headers to see exactly what's going on (press F12 in your browser to see dev tools - IE, FF & Chrome)
you may switch to default theme first,
if working fine, the image link might be broken of your current theme
check the image link

cpanel redirection still works after deleting htaccess

I set a redirection in cpanel. I then deleted the htaccess file from the server, but the redirectin still takes place.
How can that be? How do I edit the htaccess file that makes the redirection happen? My own changes to the htaccess file (which I deleted) don't work either,
In cPanel you should be able to remove the re-direction with the same tool you used to create it. cPanel is funny about having it's files edited.
Removing Redirect entries in cPanel, deleting .htaccess files and ipconfig/flushdns command didn't work for me alone.
In addition to following all 3 steps mentioned above, we will have to clear our browser cache as well to make deleted redirect don't work anymore.

Categories