| Subcribe via RSS


wordpress: If this file were writable you could edit it.

May 21st, 2008 | No Comments | Posted in anything under the moonlight, wordpress by dreamluverz


Error: If this file were writable you could edit it.

If you’re getting this error check the folder for wp-content and for themes and change its permission to 777 as well as it’s sub folders esp the current theme you’re using.

for references you could also check the following links:
http://wordpress.org/support/topic/115385

http://codex.wordpress.org/Changing_File_Permissions

Tags: , , ,

cancelBubble

May 14th, 2008 | No Comments | Posted in javascript by dreamluverz


I have this function but something was wrong with firefox. I got undefine value. After taking a closer look in my code I forgot to pass the 'event' parameter on my function.

function dps_cancel_bubble(e)
{
if (!e) var e = window.event;
e.cancelBubble = true;
if (e.stopPropagation) e.stopPropagation();
}

so you need to call it like this.

<img src=”" onlickc=”dps_cancel_bubble(event)”> DONT EVER FORGET TO PASS event or else you’ll get crazy looking for the bug :P I almost did :lol:

Tags: , , , , , ,

error 500

May 8th, 2008 | No Comments | Posted in apache, server by dreamluverz

problem: error 500 on xampp when using htaccess:
solution: Locate this file httpd.conf and uncomment this LoadModule mod_rewrite modules/mod_rewrite.sop and restart apache

Tags: , , ,

[function.main]: failed to open stream: Permission denied

March 4th, 2008 | No Comments | Posted in php by dreamluverz

Warning: … [function.main]: failed to open stream: Permission denied

Warning: main() [function.include]: Failed opening … for inclusion (include_path=’.:/usr/lib/php:/usr/local/lib/php’) in …

I wanna bear in mind that this error has something to do with file permission coz at first glance I just checked the path of the included file but looking closely it has something to do with the file permission. Changing it to 755 solved the issue. :P

And one more thing, I had this error_reporting(E_ALL && ~NOTICES); on my script and can’t see why my included file is not functioning. I’ve been looking what could be the error. Commented this error_reporting(E_ALL && ~NOTICES); kuala!!! I found the Warning msg! :P so be sure to comment this line when debugging your code or else you’ll get crazy looking for the error :P

Tags: , , ,

photoxhibit error

March 2nd, 2008 | 2 Comments | Posted in wordpress by dreamluverz

I’m so thankful I found this plugin, photoxhibit by benjamin sterling. Now I can show my photos from picasa on my blog like it’s really uploaded on my site :)

One issue though is, I got some erros on Manage album. One of them is:

jQuery is not defined [Break on this error] (function($){$.ui=$.ui||{};$.extend($.ui,{plugin:{add:function(module,option,set…

I already contacted him about this error and hopefully he’ll reply. :)

You can download the plugin here: http://benjaminsterling.com/photoxhibit/ 

Tags: , ,

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]:

March 2nd, 2008 | No Comments | Posted in anything under the moonlight, php by dreamluverz

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user ‘apache’@'localhost’ (using password: NO)…

I’m having that error for using mysql_real_escape_string in one of my functions. Checked php manual and it says u need to have mysql connection to use that. :P well.. my bad…coz I’m using it in a variable before putting in a query. This is an example on how to use it anyway…


// Connect
$link = mysql_connect('mysql_host', 'mysql_user', 'mysql_password')
OR die(mysql_error());

// Query
$query = sprintf(”SELECT * FROM users WHERE user=’%s’ AND password=’%s’”,
mysql_real_escape_string($user),
mysql_real_escape_string($password));
?>

Tags: , , ,

Error: invalid argument to date encode in nusphere

February 29th, 2008 | 8 Comments | Posted in server by dreamluverz

I’m getting this error at this moment. And also these guys on this site:http://forum.pspad.com/read.php?2,45078,45079.  What could be the problem. Please help us…

Tags: , ,

[function.move-uploaded-file]: failed to open stream: Permission denied

February 24th, 2008 | 1 Comment | Posted in php by dreamluverz

[function.move-uploaded-file]: failed to open stream: Permission denied

Encountered this error. I’ve checked the path, permission it’s all correct. Then I tried changing the permission of the folder on where to move the files to 777… problem solved. Thanks God! :)

Tags: , ,

gallery2 plugin for wordpress

February 23rd, 2008 | No Comments | Posted in wordpress by dreamluverz

Error: Options not available until WPG2 Plugin is Validated.

I’m getting this error and lots of different errors when activating the gallery2 plugin in wordpress. I got path error and so on. First of after installing wpg2 and activated it on plugins, when I go to wpg2 section on admin it lists several error messages. It’s looking for embed.php and realized I got a wrong path for the gallery2. But still I got an error options not avaialable until wpg2 is validated. Later I realized I just extracted the file for gallery2 but not installed it. hehehe. so installed it have the right path and all errors was gone:)

Tags: , , ,

[function.getimagesize]:could not make seekable

February 21st, 2008 | No Comments | Posted in php by dreamluverz

I’m getting this error using the function getimagesize: [function.getimagesize]:could not make seekable

I’ve checked the path it’s right, checked if the image existed. It was. I took a closer look on the details of getimagesize on php manual for the accepted file types and it says jpg file type and mine was jpeg. MOdified it using photoshop to jpg file type and it solved my prob :)

Tags: , , , ,