luvas2010 / ci-cms

Automatically exported from code.google.com/p/ci-cms
Other
0 stars 0 forks source link

Image upload produces syntax error #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
When attempting to upload an image via page/create I get a Syntax Error message 
from Safari. I 
also get the same error in Firefox. 

I'm running CI-CMS 0.2.0.1 on Mac OS X.

Original issue reported on code.google.com by gpear...@gmail.com on 28 Nov 2008 at 2:11

Attachments:

GoogleCodeExporter commented 9 years ago
Can you see if these folders are found? 

media/images
media/images/s
media/images/m
media/images/o

If not then please create them.

Original comment by heriniai...@gmail.com on 28 Nov 2008 at 2:55

GoogleCodeExporter commented 9 years ago
The image folders are there, yes.

Original comment by gpear...@gmail.com on 28 Nov 2008 at 3:24

GoogleCodeExporter commented 9 years ago
Such error might be an error from your server (maybe GD2 is not installed or
something like that), and the result is not a valid XML but maybe an error page.

Try this to debug:

1. in modules/pages/controllers/admin.php

Comment the line
redirect('admin/page');

which is at arround 196

2. Create a page, just browse the image but do not click on UPLOAD button.

3. When the image filename is there, just hit Save to submit the article.

If there is an error, it should be shown there.

Original comment by heriniai...@gmail.com on 28 Nov 2008 at 3:38

GoogleCodeExporter commented 9 years ago
OK, now I get

Fatal error: Call to undefined function format_title() in /Users/Gaz/Sites/ci-
cms/application/modules/page/controllers/admin.php on line 118

Original comment by gpear...@gmail.com on 28 Nov 2008 at 6:44

GoogleCodeExporter commented 9 years ago
Also, I know that gd lib isn't installed, so maybe that's the issue.

Original comment by gpear...@gmail.com on 28 Nov 2008 at 7:03

GoogleCodeExporter commented 9 years ago
OK, gd lib installed, and working correctly. The upload still doesn't work.

If I do Choose File -> Save Page or Choose File -> Upload -> Save page, the 
little gif anim appears, but the 
file never gets uploaded. 

Original comment by gpear...@gmail.com on 28 Nov 2008 at 7:44

GoogleCodeExporter commented 9 years ago
The fatal error below was fixed with r264
http://code.google.com/p/ci-cms/source/detail?r=264

Fatal error: Call to undefined function format_title() in /Users/Gaz/Sites/ci-
cms/application/modules/page/controllers/admin.php on line 118

Original comment by heriniai...@gmail.com on 28 Nov 2008 at 9:37

GoogleCodeExporter commented 9 years ago
Nice work. Thanks.

Original comment by gpear...@gmail.com on 28 Nov 2008 at 10:26