Every repository with this icon (
Every repository with this icon (
| Description: | PyroCMS is a CMS built using the CodeIgniter PHP framework with modularity in mind. Lightweight, themeable and dynamic. edit |
-
When I created an article at news module I got messy code at body field.By the way I'm using Chinese language.I found htmlentities function translate all Chinese Character into HTML entities.So I add htmlspecialchars function's second and third parameters like “htmlentities(stripslashes($article->body),ENT_COMPAT,'UTF-8')”.It works.
Comments
-
When I create a catagory in Chinese.I found the slug field is empty.So the record can't be edited and deleted.What can I do?please.
Comments
philsturgeon
Tue Jul 28 07:20:54 -0700 2009
| link
So you create a category, it saves but it loses the slug?
Can you try with English characters please, see if the same happens.
I am not sure if non A-Z will be supported in the URL. Does this work with non-CodeIgniter web-sites?
Yes.But English characters is OK.Maybe the url_title function does'nt support chinese string.I try to use wordpress's sanitize_title_with_dashes function.It can not work either.The server responsed that it is a bad url.The url like http://localhost/pyrocms/admin/categories/edit/%25e9%25a5%25ad%25e9
philsturgeon
Tue Jul 28 08:22:28 -0700 2009
| link
Thats really not a good URL to have. No users, bots or ANYTHING would see that as anything other than gibberish.
Not sure what to do about this.
philsturgeon
Tue Jul 28 08:25:21 -0700 2009
| link
Could you send me what you have so far? I will try and have a look this week. email@philsturgeon.co.uk.
May I ask you a question?Thank you.Why use slug instead of primary key?Because I found the news module do work using primary key regardless of which language.
philsturgeon
Tue Jul 28 08:39:24 -0700 2009
| link
Slug = text representative that shows both users and crawlers what the content is.
ID = number in the database.Of course a number works in every language, they are always the same.
I wouldnt want to ruin SEO for all languages with English characters, just to support non-English languages. Perhaps I can look into using primary key for non-A-Z based languages?
Oh,I see.Someone have get a solution.He translate the Chinese Character into pinyin.Pinyin use A-Z just like english.But it is a little complex.see http://www.moon-blog.com/2007/08/wordpress-plugin-chinese-pinyin-slug.html
I have sent you the catagories table.Please check it.Thank you.
Yes,You are right.I use hash code in slug for non-A-Z based languages.It do works.Just modified url_title.Thank you.
YorickPeterse
Thu Aug 27 07:08:18 -0700 2009
| link
So this one can be closed ?
philsturgeon
Thu Aug 27 07:23:28 -0700 2009
| link
No. News articles create a slug automatically, based on the title. These slugs will be broken.
you have to send the ID number since the ID is unique , i already got issue opened check it .i also modified the cms version work this way , if you are interested
philsturgeon
Mon Nov 02 07:28:15 -0800 2009
| link
Meabed: We cannot just stop using slug's and swap everything to an ID, there is a reason we used slugs in the first place.
-
The database tables could not be created, please verify your settings.
Comments
philsturgeon
Fri Sep 18 02:27:09 -0700 2009
| link
Could you please provide a little more information.
Is this on a local setup or live server.
Is MySQL definitly running?
Are you sure you have the right passwords?
Any information you can give us will help. Right now you are just telling me that something is broken somewhere for someone. We cannot do much with that. :-)
I also had a problem with the installation.
So I tried manual execution of the sql files.
The database went OK
but the default data failed.
Problem is with this line in default data sql:
('twitter_password','Password','Twitter password.','password','','','','0','1','twitter'), the type mentioned 'password' does not exist in the table settingsSolution:
in the database.sql at CREATE TABLEsettingsupdate the line:
typeset('text','textarea','select','select-multiple','radio','checkbox') collate utf8_unicode_ci NOT NULL,To
typeset('text','textarea','select','select-multiple','radio','checkbox', 'password') collate utf8_unicode_ci NOT NULL,This solved the database setup problems for me
YorickPeterse
Sun Oct 04 04:06:40 -0700 2009
| link
It's weird to see that the default data still isn't inserted properly, it should've been fixed a while ago.
Hi,
Thanx for your Mail.
I downloaded pyrycms yesterday (03OCT09, philsturgeon-pyrocms-287aff0.zip)
And the problem is in the 1-tables.sql file.
By adding the 'password' entry I was able to execute all 3 .sql file's without problems.If I now start pyrocms, it shows me the default page which is good.
But I encountered a new problem, when I try to login with:
user: demo@example.com
password: passwordThe browser goes to:
http://localhost/pyrocms/users/loginWhich does not seem to exist, showing me a 404 page.
So I am not able to login to test the CMS :-(I also cannot find a controller called users??
so I am stuck a bit.
I guess this should be Admin instead of users.
I have not found a solution for this yet.regards
YorickPeterse
Sun Oct 04 11:51:32 -0700 2009
| link
Did you upload your .htaccess file as well ?
Well I do not use appache as webserver but Abyss from aprelium,
So I do not have any need for the .htaccess
At least I think. I will take a look at the aprelium forum for abyss if I can find anything about .htaccess but I thought it was specific for appache.
YorickPeterse
Sun Oct 04 14:34:36 -0700 2009
| link
There's your problem. PyroCMS relies on a working .htaccess file in order to work properly. It has never been tested on Abyss (or any other non Apache server as I know).
philsturgeon
Sun Oct 04 23:55:06 -0700 2009
| link
Not entirely true. PyroCMS simply requires mod_rewrite for the URL rewriting. If you add "index.php" to the $config['index_page'] item in application/config/config.php then it should work fine.
Yorick: perhaps this could be added to the installer? Have a "Server Software" option with a dropdown showing only "Apache (with mod_rewrite)" and "Other". If mod rewrite then have a blank index_page, if anything else keep index.php in there. That should make it work with most server software around.
Thanx Phil (and Yorick),
The last info from Phil was the solution,
everything seems to be running ok on my Abyss webserver.
YorickPeterse
Mon Oct 05 10:10:40 -0700 2009
| link
I'll add this feature to the installer as soon as possible :]
magicmarkker
Tue Oct 27 14:00:03 -0700 2009
| link
Hi, i'm having a problem with after i install the database, I get a blank page that says "No input file specified". Any ideas why? I've uploaded the htaccess and I have mod_rewrite enabled.
philsturgeon
Tue Nov 03 13:05:56 -0800 2009
| link
magicmarkker: Is this still causing problems? Have you tried the newest version?
magicmarkker
Wed Nov 04 12:46:47 -0800 2009
| link
ok so I found the problem. If cgi.fix_pathinfo default is set to 1, you can fix it either of two ways.
1. Create your own php.ini file and set it to 0
2. Go to .htaccess file and add question mark after index.php and before slash.
philsturgeon
Mon Nov 09 08:37:55 -0800 2009
| link
Do you have a suggestion for PyroCMS implementation? I think this is a environment problem, and im worried if I make the change mentioned in option 2 it would have widespread effects for other users.
Can you test this change in a few common environments so we can include it?
magicmarkker
Mon Nov 09 08:46:21 -0800 2009
| link
This was a suggestion on how to fix the No Input File Specified error on Dreamhost hosting. Because on their hosting cgi.fix_pathinfo default is set to 1 and in order for the htaccess file provided with PyroCMS to work, cgi.fix_pathinfo needs to either be set to 0 or in the htaccess file you need to add a question mark after index.php and before the slash so like this, index.php?/$1
-
Hi,
I hope I'm ok posting this here. Am wanting to try out pyrocms. Have run the installer but got errors so did a manual as the installer read me suggested but when I try to login in I get a 404. Can someone help? Thanks
Comments
Hi,
Maybe you have the same problem as I was having.
I do not use appache webserver and then you have to make an extra change:If you add "index.php" to the $config['index_page'] item in application/config/config.php then it should work fine. (info from Phil Sturgeon)
This worked for me.
regards
Hey,
Thanks alot for your reply.
My webserver is appache but setting $config['index_page'] did make a difference. I will have a play around and post back here.
YorickPeterse
Thu Oct 22 11:57:57 -0700 2009
| link
Any updates so far ?
-
Slug Error while writing in UTF-8 Arabic Categories !
4 comments Created 9 days ago by Meabedso instead of passing the Slug , you can use the ID since the id is unique !
function updateCategory($input, $id) { $this->db->update('categories', array( 'title' => $input['title'], 'slug' => url_title(strtolower($input['title'])) ), array('slug'=>$id)); return TRUE; }and in view instead of showing the cat->slug , ( cat->id );
You need full modification to the Slug , so i won't be necessary ? in all inputs and sql selects
I already have modified version :) i also want to contribute in the project :) how should i ?Comments
philsturgeon
Mon Nov 02 07:27:00 -0800 2009
| link
Please report an error in full before you try to provide a fix.
Do you have screenshots or error messages for me to look at?
the error if i make for Example category in with Arabic title , so the function url_title that take the string and convert it to title by placing dashes instead of spaces .etc ..
so when u make it in Arabic the Slug become null !
so whenever you want to Edit or delete category it won't be don't cuz category->slug = null !
philsturgeon
Tue Nov 03 12:59:52 -0800 2009
| link
Well instead of using ID for edit and delete, we need to solve this problem of null slugs.
What are your suggestions for that? The slugs need to exist for news, categories, suppliers, etc.
-
I've tried functionality of PyroCMS javascript based admin menu using Internet Explorer and FireFox browsers using 2009-11-02 version.
IE8, FF3.5 - cool
IE7, FF2.0.0.20 - menu doesn't work.
Comments
philsturgeon
Wed Nov 04 10:33:04 -0800 2009
| link
Withough sounding like an ass, if you find a fix let me know. I have no access to either of those browsers right now and if I'm honest I cba to support them. Who uses FF2?
sometimes my projects I need support of IE6-IE8, FF>=2.0 etc ...
I haven't found the solution, but I've seen that opening in new tab/window do not inspire this issue.
after investigation I guess that issue inspired in
application/assets/js/admin.js lines 83-103.
ajaxify (or rather Get method) adds '?' and current time to prevent retrieving of the cached page
philsturgeon
Thu Nov 05 01:05:14 -0800 2009
| link
What do you mean by "menu doesn't work."?
The links dont go anywhere or the animation is messed up?
Do you get a JavaScript error?
If so, can you post the JavaScript error?
If not, can you post a screenshot that could help?
You need to give me SOMETHING to work with if you want this fixed, otherwise I can't do anything about it.
I click of top menu item such as 'Categories', 'Comments', 'Navigation' etc.
for instance, i click 'categories' link. I should see list of categories. I don't see them in FF2.. I saw the html source. The html source was modified correctly.
The reason of failure work in FF2.0 and IE7.0 inspired by incorrect changes of jQuery1.3.2 attribute 'html' after jQuery1.2.6 ( ajaxify was developed for jQuery1.2.6, tested for FF>=2, IE>=7.0).
I've noticed jquery community about this bug.
To solve this issue for PyroCMS you'll need to change this file: "application/assets/js/jquery/jquery.ajaxify.js".
You'll need to add these lines:
if(typeof data == 'object'){ data = data.html(); }after line number 344 (after these lines of code):
if(!jQuery(current.target).size()) jQuery.ajaxifylog('Warning: Target "'+current.target+'" couldn\'t be found.');}
I tested my changes in FF2, and I haven't tested in IE7 yet. but i guess, the results will be successfully too.
-
Web installer goes to a white screen of death on step 2. Manual install (by installer/sql/1-tables.sql) produces this error:
ERROR 1050 (42S01) at line 322: Table 'asset' already exists
I looked at the script and it does indeed attempt to create the asset table twice.
Comments
jeffreymcmanus
Sun Nov 08 11:14:46 -0800 2009
| link
It looks like this script is trying to create the asset_folder table twice as well.
i did also have almost the same problem
mine were 2 tables: asset and asset_folder
i removed the double create table (both underneath create table user)also i recall there were couple of tables missing their fields or settings
for example:
- inside create table settings: missing set('password') on field type - table navigation_links missing field targetif you guys know more of this mistakes, please share them with us too
thanks for this great ci cms
one more problem
on mac, using mamp, i can install this cms almost smoothly
but when i try to install pyrocms on windows, using wamp
after step 4, it just stop and got back to step 4 again
asking me to insert database name, etc
please help me out
philsturgeon
Mon Nov 09 06:24:53 -0800 2009
| link
Can we stick to one bug per issue please? Hard to track otherwise.
All of these bugs have been solved in the bleeding edge (current codebase) and some are fixed in v0.9.7.1 (mainly installer issues with step 4).
Thanks for pointing them out, enjoy Pyro!












It will show html code in article.It seems htmlentities function must change into html_entity_decode function both in view.php and admin/preview.php under news module's view directory.
I tried htmlentities(stripslashes($article->body),ENT_COMPAT,'UTF-8') and it started showing HTML in my posts.
Are you suggesting that using: html_entity_decode(htmlentities(stripslashes($article->body),ENT_COMPAT,'UTF-8') ) will work? >.<
yes.It works.
wuts: I need a test plan for this, can you send some characters that are currently breaking?
Any Chinese Character may cause breaking.Such as blow:
小作者最喜欢的动画就是火车侠了。在他的想象中,天空中的白云像握紧的铁拳,太阳不断喷射火焰,奥特曼和他的遥控器从天而降,一列超长火车急速飞驰在轨道上…直升机升空,准备战斗……所有人!全速!前进!
小画家首先勾画出了他最爱的火车侠,尖头长身,便于急速前进。并用偏冷的绿色搭配温暖的黄色渲染了车身,可爱质朴的短粗线条画出了铁轨。