Showing posts with label error. Show all posts
Showing posts with label error. Show all posts

Thursday, October 07, 2010

JUser::_load: Unable to load user with id

In joomla or k2 you may receive this error "JUser::_load: Unable to load user with id". Guess what, a user with that id was deleted and the error shows because some piece of content is trying to load that user account. In my case it was being thrown from k2 comments because the user had commented on the blog post had been deleted.

To resolve this create an empty user in the admin of joomla and change its ID to the missing one in phpmyadmin.

OR

You can just delete the users stuff.. i.e. comments photo etc from k2 or joomla.


Stumble Upon CodePyro

Thursday, September 16, 2010

jquery "Failed to load source for:" ajax, post error

All afternoon I have been setting up the very awesome jquery Star Widget from http://orkans-tmp.22web.net/star_rating/index.html.

Just restart firefox.. erf... or read the procedure of suffering below.


I have been setting it up in a testimonials/ratings system for an older website. The jquery post calls a cfc which was returning values while fixing minor issues with the code. Then all of a sudden it started to throw the error in firebug "Failed to load source for: http://domain.com/ratings.cfc". This was strange because I could call the CFC directly.

So, after restarting Coldfusion and reloading the fusebox app probably a million times with no results. I thought hrm, just for kicks ill restart firefox v3.6.8 and BAM! it started working again.

Time to go look for the newest version of firefox, dang what a waste of time.


Stumble Upon CodePyro

Monday, August 02, 2010

flash cs3 file upload IOerror #2038 in firefox 3.6.8

Narf! The latest version of firefox 3.6.8 has a bug with flash cs3 file upload. The standard file/image upload throws an ioError, for some reason only in the latest firefox. It works perfectly in previous versions and in IE 8 and Chrome.

Error message from flash

ioerror:[IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2038"]


here is an example of how to upload an image file using as3 and php
http://entrance4.net/labs/?p=51

some inter-search (googling) returns 0...
Does anyone know how to fix this?

NOTE: mod_security is not turned on and the upload does work in other browsers


Stumble Upon CodePyro

Wednesday, February 24, 2010

virtuemart addtocart_list_single.tpl.php on line 38

If you are getting an attributes error in virtuemart with child products on line 38. Just open the file and add an if isset to the attributes around the foreach statement.

likea-so


if(isset($product['attrib_value']))
{
foreach($product['attrib_value'] as $attribute) { ?>
<span class="vmChildDetail<?php echo $cls_suffix ?>" style="width :<?php echo $attrib_width ?>;" />
<?php echo " ".$attribute ?></span>
<?php
}
}


Stumble Upon CodePyro