Showing posts with label wordpress debug mode. Show all posts
Showing posts with label wordpress debug mode. Show all posts

Friday, October 30, 2009

Wordpress debugging : CformsII, Jcarousel and Timthumb

Just blogging my debugging experience  in Wordpress.

First problem encountered : Timthumb.php by Darrent Hoyt not displaying the resized images.

Solution: First thing to do is to check the file permissions properties of the temp/cache folder where your timthumb.php stores its temporary files is set to 777. This is also part of the timthumb instructions so don't hesitate to visit their site. If this doesn't solved your problem, you can also try contacting your host because I noticed it will give an Error 403 or 500 which is particularly in security issues. By searching the Wordpress forum I found a solution at this thread . It was suggested to use relative path of the images. Solution is straightforward, you just have to omit from the path of images your url address and leaving only "/wp-content/uploads/bigs.jpg&w=232&h=158&zc=1". I immediately tried copying the URL of the image and paste it to the address bar of my browser, removed the address of the site with the following sample.

Working
http://www.address.com/wp-content/themes/magiting/functions/timthumb.php?src=/wp-content/uploads/big_boobs.jpg&w=232&h=158&zc=1

Error
http://www.address.com/wp-content/themes/magiting/functions/timthumb.php?src=http://www.address.com/wp-content/uploads/big.jpg&w=232&h=158&zc=1


Second Problem : Conflict between Jquery's plugin Jcarousel and WP plugin CformsII

After the first problem was solved, I noticed another problem from the Jcarousel. Both navigation buttons of the carousel was not displayed eventhough the its background was already loaded. I suspected some javascript or css files are doing it.

What I did was, I copied the source in plain HTML and save it to my local disk. Initially, I removed some css and javascripts pre-loaded by some WP plugins. The last plugins' javascript and css I removed was from Cforms II, upon refreshing the page the navigation buttons of Jcarousel magically appeared again. Until now I'm still looking for solutions to make the Jcarousel gallery and CformsII work together. If anyone have some solutions to this issue please leave your comment.

Monday, October 26, 2009

Debug mode 'true' results in Wordpress 2.8.4


I'm not a Wordpress expert myselft but I often asks by friends to do some stuff with it. Recently, I tried debugging some error we encountered with my friends blog using Wordpress. 


Normally, in some CMS or some other web project there's an option to turn on the debug mode for us developers to know what are those error we don't easily see by walking through the lines of codes.


Now, I tried enabling Wordpress' debug mode by adding define('WP_DEBUG',true); at wp_config.php file at the root directory of Wordpress and noticed the following errors:

Notice: get_settings is deprecated since version 0.0! Use get_option() instead. in F:\AppServ\www\projs\wp\wp-includes\functions.php on line 2918.

Well, it won't actually make a huge problem with your Wordpress site using the version 2.8.4 but for compatiblity concern this must be change from its core since 2.8.5 has arrived with security issues addressed already. I believe 2.9 will be coming soon too hope this has been addressed too.

Related Posts Plugin for WordPress, Blogger...