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.
philsturgeon
Tue Nov 10 00:58:21 -0800 2009
| link
Should we allow a human-pickable slug for everything using a slug? Can auto-suggest with JavaScript and only allow A-Z, 0-9, -, _.
-
Slug Error while writing in UTF-8 Arabic Categories !
4 comments Created about 1 month 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 know another bug report is filed about the uri but I wanted to post a possible fix which you can see here: http://gist.github.com/231134
It uses some functions from Wordpress and verifies that an existing slug does not match. If so then it ads a number to the end.
The other thing I would like to propose is when editing the categories from admin you use the id to update instead of the slug.
Comments
philsturgeon
Wed Nov 11 01:38:06 -0800 2009
| link
F**king hell thats a lot of code for slugs. Might be worth making a Slug library for this sort of thing?
The other option is simply have a "as you type" slug box on each form that uses a slug, to automatically guess what a slug should be but provide options if not. Meaning, as you type, all alpha, numeric, dash characters go into the box, leaving out everything else?
Not sure id vrs slug really matters when updating. It does the same thing and improves automatic breadcrumbs.
ericbarnes
Wed Nov 11 06:26:49 -0800 2009
| link
The problem I ran into when using javascript was converting foreign characters. But I guess giving them the power to enter it them selves would prevent from having php do it.
I mainly posted this as a suggestion. In no way shape or form do you have to use it. :) Just something I have been using in a project and works 100 times better than the default url_title func.
philsturgeon
Wed Nov 11 07:02:23 -0800 2009
| link
The url_title() for sure is very limited and this code seems to do an awful lot towards sorting it out, but im just trying to work out the best solution.
With slugs getting them to work for EVERYONE is never going to be simple. Character converting will never work for all languages and character types, so forcing human entry of characters may be the best bet, even if it is incredibly annoying.
Perhaps instead of just using JS to insert all non a-zA-Z0-9_- characters, we could combine the two and convert what can be converted and check duplicates at the same time?
A generic "slug" controller could be made that could be used as a generic way to check any kind of slug... somehow... Perhaps a function that sets which db and field to check against for the unique slug, and runs a convert at the same time?
ericbarnes
Wed Nov 11 07:18:05 -0800 2009
| link
Here is a jquery one I just found: http://leocaseiro.com.br/jquery-plugin-string-to-slug/
It worked on the German characters I entered but not chinese and probably not arabic.
philsturgeon
Wed Nov 11 07:39:46 -0800 2009
| link
Cyrillic and Chinese show as 'undefined'
-
WYSIWYG Image Manager giving blank screen (v0.9.7.2)
5 comments Created about 1 month ago by chrishodgsonpyrocms: 0.9.7.2
browser: Firefox 3.5.5
os: osx leopard
When you click the image manager button on the WYSIWYG, it gives a blank screen. A javascript error is reported in the firefox console...
"self.lang is undefined" on line 75 in assets/js/tiny_mce/plugins/tinycimm/js/tinycimm.js
line 75 seems to be returning an error whilst executing XHR.Send()
line 75 line reads as follows ...
tinyMCEPopup.editor.windowManager.alert(self.lang.msg_xhr_error_asset+".");
the add/insert image button alongside the Image manager button on the WYSIWYG works fine
chris
Comments
philsturgeon
Thu Nov 12 04:56:20 -0800 2009
| link
A ticket has been raised, we'll close this when its fixed.
Thanks for reporting this issue.
philsturgeon
Thu Nov 12 05:51:46 -0800 2009
| link
chrishodgson
Thu Nov 12 07:02:42 -0800 2009
| link
thanks for the prompt response
after installing the patch, i now get an alert displaying "undefined"
which is being displayed by the same alert box as before, but is showing undefined because the language variable isnt defined ...
tinyMCEPopup.editor.windowManager.alert(self.lang.msg_xhr_error_dialog+".");
i grepped for the language string and found it in ..
language/english/tinycimm_lang.php:$lang['tinycimm_dialog_msg_xhr_error_dialog'] = 'There was an error retrieving the dialog body html';
Anyway, the reason that its trying to display this alert in teh first place is because XHR.Send() is returning an error response when called in getDialogBody() (file: tinycimm.js)
so unfortunately its not fixed, although the earlier error has been resolved. sorry i would try to fix this myself, but am not too clever on the js side
chris
Hi chris
Firstly, my apologies for these issues, and thank you for the feedback. The image manager has never been BETA tested before, so teething problems are somewhat expected.Unfortunately I can't replicate this issue my side. If the image manager is trying to alert an error msg, then probably something has gone wrong on the backend side. Please can you have a look in the codeigniter logs (/codeigniter/logs) and let me know if you spot anything obvious. (Also, if you're willing, send me the latest log file and I can take a peek. [willis.rh@gmail.com])
philsturgeon
Wed Nov 25 00:56:55 -0800 2009
| link
Any progress on this one guys?
-
Apache crash when i login to the admin side an error comes up. and connection rest.
Comments
philsturgeon
Wed Nov 18 04:33:07 -0800 2009
| link
It would be helpful if you could give me some information to work with here. That gives me nothing to work with at all.
ibrahimmomani
Wed Nov 18 06:06:43 -0800 2009
| link
i have xampp 1.7.2 and i installled pyrocms on it and i got this error
when i go this url admin/login
Apache HTTP Server has encountered a problem and needs to close. We are sorry for the inconvenience.
szAppName : httpd.exe szAppVer : 2.2.12.0 szModName : php5ts.dll
szModVer : 5.3.0.0 offset : 0003406f
philsturgeon
Wed Nov 25 00:50:43 -0800 2009
| link
GDMac is getting the same problem:
pyrocms 0.9.7 on local dev. (mac 10.5.8, php 5.3 entropy)
step1 is run ok, clicking step2 gives a "the server unexpectedly dropped the connection" in safari and a blank screen (200 OK) in Firefox.
philsturgeon
Fri Nov 27 01:13:45 -0800 2009
| link
Ok so it seems PyroCMS is not compatible with PHP 5.3.0 this is not just a XAMPP issue.
philsturgeon
Mon Nov 30 00:31:11 -0800 2009
| link
This is happening on XAMPP, MAMP, WAMP and all sorts of LAMP stacks, but still is confirmed as only happening in PHP 5.3.
We have had reports that this is caused by a MASSIVE HTTP header (over 8kb) and we need to find what is causing it. I have a theory that it is related to MySQLi sending all its queries in one go, so I have tried splitting them up in the installer and that is causing new errors.
Please continue reporting anything new you find out, especially if you find Apache crashing anywhere other than Installer last stage.
-
I am a PHP programmer with 8 years experience but new to CI and installed PyroCMS Version: 0.9.7.2 at home on Wampserver (Apache 2.2/php 5.2.11) with no errors in http:\localhost\pyrocms
But:
1.- Accesing http:\localhost\pyrocms:
An Error Was Encountered Unable to load the requested language file: language/newsletter_lang.php
2.-Accesing http:\localhost\pyrocms\index.php\admin (login)
The template/theme seems to load ok and the login works, but there are visible tags not closed or mixed (template bad procesed?)
3.-Accesing http:\localhost\pyrocms\index.php\admin (after login)
It's all a mess.
The template/theme seems that is not working.
If I see the source code, THERE IS NO HEADER OR BODY tags, so I think it's an issue with the location of the dirs.
The source code of the page starts with:
< /div> < div id="content"> < !-- Inner Content --> < div id="innerContent"> < !-- < div id="confirm" class="hidden"> < a href='#' title='Close' class='modalCloseX simplemodal-close'>x< /a> < div class='confirm-header'>< span>Confirmar< /span>< /div> < div class="confirm-message">< /div> < div class='confirm-buttons'> < div class='no simplemodal-close'>No< /div>< div class='yes'>Sí< /div> < /div> < div class="clear-both bBottom">< div>< /div>< /div> < /div> --> ... < strong>Welcome to the Un-named Website Control Panel. Using the links above and to the left you can control almost every aspect of your website. If you happen to have any problems with the system, please submit your issue to our bugtracker.< /strong> ...
Hope to fix this!
Cheers, ^_^
Comments
philsturgeon
Mon Nov 30 00:32:43 -0800 2009
| link
This looks like you have a slightly out-dated copy of v0.9.7.2, or i need to push v0.9.7.3 more than I realized. Can you please download the current bleeding edge (hit source, the click download) and you should see v0.9.7.3-dev in application/config/constants.php, or at the bottom of admin panel.
This should take care of both of those bugs.
philsturgeon
Mon Nov 30 00:34:09 -0800 2009
| link
To explain, the main reason for the bunged up looking templates its because the v0.9.7.x branch uses short tags in the view files. I v0.9.7.3-dev enables short-tag rewriting in CodeIgniter config which fixes this issue, and v0.9.8-dev hjas had all short tags removed and replaced with full PHP tags.
Yes, after changing the constants.php file, all seems to work ok...
Well, not all... logout from control panel does not work (http://localhost/pyrocms/admin/logout) -it does nothing-, but logout from public zone works (http://localhost/pyrocms/users/logout)
But HEY, I can see it all now, and it is impressing me VERY much!!!
-
Error found when try to intall Pyro CMS with WAMP Uniform Server Version 5.4 Nano :
- A PHP Error was encountered
Severity: 8192
Message: Assigning the return value of new by reference is deprecated
Filename: libraries/Loader.php
Line Number: 414
The error disappeear when refreshed, error location at libraries/loader.php
$CI->dbutil =& new $class();
- An Error Was Encountered
Error at line 89 file application/libraries/MY_Language.php ->
Error notes
Unable to load the requested language file: language/newsletter_lang.php
Environtment :
Uniform Server
using Apache/2.2.14 (Win32) PHP/5.3.1 DAV/2 and mysql version: 5.1.41-community apache
Error also found when i try to use Easy PHP WAMP Version 5.3, apache server crash !
- Apache/2.2.13 (Win32) PHP/5.3.0
- MySQL client version: mysqlnd 5.0.5-dev - 081106 - $Revision: 1.3.2.27 $
- PHP extension: mysql
MySQL Server
Server version: 5.1.37-community-log
Protocol version: 10
User: root@localhost
MySQL charset: UTF-8 Unicode (utf8)
- Pyro CMS Running well when using old Version Uniform Server V 4.1 . This WAMP Server using :
Apache/2.2.11 (Win32) PHP/5.2.9-1 DAV/2
MySQL client version: 5.1.31
PHP extension: mysqli
MySQL
Server version: 5.1.33-community
Protocol version: 10
Thanks
atmoonComments
philsturgeon
Mon Nov 30 00:27:53 -0800 2009
| link
1.) This is an issue when using PyroCMS on PHP 5.3 which was fixed in v0.9.7.x (cant remember which). Please ensure you have the latest by downloading from the Downloads tab and clicking v0.9.7.2, or download master which will give you the current v0.9.7.3-dev (stable-ish development build).
2.) I spotted this one a while ago but I cant seem to re-create it. Possibly fixed in v0.9.7.3-dev.
3.) We have had lots of reports of Apache crashing when using WAMP or XAMPP and PHP 5.3. Are you having problems running the installer, or another page?
Installer crash is mainly caused by a MASSIVE HTTP header (too big for PHP to handle) which I think is caused by MySQLi (investigating).
-
Error in form
If I do not upload a file in suppliers instead of a nice form validation error and reloading of the page, the codeigniter fails with
An Error Was Encountered You did not select a file to upload.
Comments
-
Have latest xampp (1.7.2) version installed on Win7 machine. Downloaded PyroCMS v0.9.7.3 and started basic installed. All requirements were met and installation went smoothly. Then open control panel and tried to log in with default account (demo@example.com | password) after that browser throwed error that connection was reset.
Error 101 (net::ERR_CONNECTION_RESET): Unknown error.
Only error i could found in log file is:
[Fri Dec 11 12:11:55 2009] [error] [client ::1] File does not exist: D:/xampp/htdocs/facebox, referer: http://localhost/pyrocms/Comments
philsturgeon
Fri Dec 11 02:47:14 -0800 2009
| link
1.) What version of PHP & MySQL do you have installed?
2.) What server software are you running?
3.) Did you try it a second time?
1.) 2.) http://www.apachefriends.org/en/xampp-windows.html
3.) yes! I tried dozen times. It is all ok with public page, but nothing works when i try to open anything after admin segment except admin/logout, after that login screen again is visible. -
I get the following:
A PHP Error was encountered
Severity: Warning
Message: mysql_get_server_info(): [2002] No such file or directory (trying to connect via unix:///var/mysql/mysql.sock)
Filename: models/installer_m.php
Line Number: 71
A PHP Error was encounteredSeverity: Warning
Message: mysql_get_server_info(): No such file or directory
Filename: models/installer_m.php
Line Number: 71
A PHP Error was encounteredSeverity: Warning
Message: mysql_get_server_info(): A link to the server could not be established
Filename: models/installer_m.php
Line Number: 71
After entering the Database Data in Step 1#
Using PHP 5.3, a custom Mysql Install in usr/local/mysql Version 5.1.39Comments












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:
小作者最喜欢的动画就是火车侠了。在他的想象中,天空中的白云像握紧的铁拳,太阳不断喷射火焰,奥特曼和他的遥控器从天而降,一列超长火车急速飞驰在轨道上…直升机升空,准备战斗……所有人!全速!前进!
小画家首先勾画出了他最爱的火车侠,尖头长身,便于急速前进。并用偏冷的绿色搭配温暖的黄色渲染了车身,可爱质朴的短粗线条画出了铁轨。