Help Center Live Community

Support => Installation Help & Software Support => Topic started by: JJ on February 10, 2009, 05:52:46 PM



Title: Generate Code - Error
Post by: JJ on February 10, 2009, 05:52:46 PM
This recently started happening and I am totally perplexed.  When I try to GENERATE image code, I get this warning:

"Forbidden

You don't have permission to access /hcl/admin/code. php on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. "

I've tried changing permissions on "/hcl/admin/code. php" and nothing happens.

Any thoughts?


Title: Re: Generate Code - Error
Post by: Ryan L. on February 10, 2009, 10:34:58 PM
Hello JJ,

I think your problem resides not with permissions as much as it does with the following:

"Additionally, a 404 Not Found error was encountered"

Clearly the file has no ownership permissions if it does not exist. Sometimes, webhosts will mark an invalid URL as "Forbidden" so I would suggest checking your URL filepath.

This is just what I have observed through day-to-day usage. It really does seem like it is a permissions problem, but you said you already tried that :D   So this is my best guess without actually being at the computer.

Hope this helps you out,

Ryan


Title: Re: Generate Code - Error
Post by: Joe Beauchamp on February 12, 2009, 12:06:37 AM
This has never worked for me - I just got back on this forum and found that someone replied to my posting the same issue.   It makes no sense to me but it works.   He said something about "image" being a problem.   So, go to /hcl/admin and edit code. php.   Where you see it say "image", change it to something else.   I think I changed 2 places - the important one at the end of code. php?image and a reference to a field, I think.

Make those changes and it will work.   I simply changed mine to imagex. . . .

-- Joe B.


Title: Re: Generate Code - Error
Post by: webasdf on February 22, 2009, 01:47:58 AM
The imagex thing worked for me.    One simple thing.    In line 56 of admin/code.  php, I changed from

Code:
$GLOBALS['template']->assign('action', 'image');

to

Code:
$GLOBALS['template']->assign('action', 'imagex');

Hope this helps.
Cheers.