arghhh…
Severity: Warning
Message: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user
Filename: libraries/codexlogin.php
Line Number: 104
mysql?? this puts me out of the game :(
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
May 13, 2008 2:10am
Subscribe [0]#16 / May 15, 2008 3:53pm
arghhh…
Severity: Warning
Message: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user
Filename: libraries/codexlogin.php
Line Number: 104
mysql?? this puts me out of the game :(
#17 / May 15, 2008 4:37pm
I think I found a bug in the date.php plugin. I was getting invalid integer errors, so I looked at the usage of mktime in the prepForDisplay function. The month and day values should be wrapped with intval() to prevent days and months with a leading 0 (as in 05) from being treated as octal values. I added the intval() to my local copy of ‘date.php’ and the errors went away.
#18 / May 15, 2008 4:40pm
I’m still getting the following error when I first login (and only when I first login):
———————————————————————————————
A PHP Error was encountered
Severity: Warning
Message: array_slice() expects parameter 2 to be long, string given
Filename: controllers/codexcontroller.php
Line Number: 104
———————————————————————————————
#19 / May 15, 2008 5:04pm
A little more detail on the above error:
I guess the interface defaults to “Example” (any way to change that?). And if there are no records for that table then $this->first_item is null.
#20 / May 15, 2008 8:50pm
I’m sorry you guys are having problems, but I want to thank you for helping me find them, it’s hard to properly test all parts of a system like this especially when I don’t have a suit of test to run (which is my fault)
I’ll address your issues in a release soon.
#21 / May 15, 2008 10:43pm
No need to apologize, you’ve done incredible work on this. Even though it took me a while to work through some of the bugs and less documented features, the end result is something that is saving me a huge amount of time. Thank you very much for you awesome contribution!
#22 / May 16, 2008 2:14am
Just wondering, what do you guys think of this concept?
#23 / May 16, 2008 4:12am
Yes…. i think this solution is best
#24 / May 16, 2008 9:47am
Just wondering, what do you guys think of this concept?
I really like this also. Very simple and nice looking.
#25 / May 16, 2008 11:09am
Just wondering, what do you guys think of this concept?
It really look better and cleaner than the Blue one! That make things more serious, however, you can keep the other one as an optional template.
#26 / May 16, 2008 11:10am
cool! 😊
#27 / May 16, 2008 11:58am
JTaby: i have made a table plugin for generating a tab interface (Jquery tab by stilbuero), useful if you have many fields to manage; in my work, i tab the fields of language (ie: tab italian, tab englisg… etc).... All work, but i have a question: i have made a little change in view/codex_form
<div class="codex-form">
<?php
echo form_open_multipart($form_action,'',array('user_id'=>$this->codexsession->userdata('user_id'),$this->codexadmin->primary_key=>$this->codexadmin->active_id));?>
<div id='codex-form-tab'>
<?php
$array_tab=array();
foreach($this->codexadmin->form_setup as $name=>$params){
if(in_array('TabSet',$params)){
$array_tab[].="<a ><span>".humanize($name)."</span></a>";
}
}
echo ul($array_tab);
echo $form_html;
echo $permissions_form;
?>
<input type="submit" value="<?php echo $this->lang->line('codex_submit'); ?>" name="delete_selected" id="delete-selected">
<div id="cancel-selected"> or <?php echo anchor($this->controller_link, $this->lang->line('codex_cancel')); ?></div>
<?php echo form_close(); ?>
<?php echo $this->codextemplates->get('extra-form-html'); ?>
</div><!-- end of div for jquery tabs-->
</div>As you see in the attach file all work fine and only the OneToMany plugin create problem: if i insert into the yml a OneToMany, all work but when i save i get an error as
Disallowed Key Characters.The problem is into the codex_form.php file because if i delete the rows
<?php
$array_tab=array();
foreach($this->codexadmin->form_setup as $name=>$params){
if(in_array('TabSet',$params)){
$array_tab[].="<a ><span>".humanize($name)."</span></a>";
}
}
echo ul($array_tab);all work, but the tabs , obvious, are not created….... Thank you
#28 / May 16, 2008 12:46pm
Just wondering, what do you guys think of this concept?
i like it very much. i’m just starting a project, and wondering if it’s worth waiting for this to come out?
when are you planning to release this style?
#29 / May 16, 2008 2:14pm
wouldhide, i would just use the current version and upgrade the core whenever a new version comes out. As long as you don’t modify the core, updating is a simple copy/paste.
abmcr, Why not structure it like the FieldSet plugin? that way you wouldn’t need to modify the codex_form.php view and make your plugin a one-file download 😊
To answer your question regarding Disallowed characters, the OneToMany and ManyToMany plugins generate HTML which contains {num} ...this HTML is in <?php echo $this->codextemplates->get(‘extra-form-html’); ?> however, if this line is after your </form>, then it shouldn’t be sent as part of the form. So check your html, and make sure the {num} part is not part of the form.
#30 / May 16, 2008 2:50pm
Just wondering, what do you guys think of this concept?
It’s great. But hopefully an option, as the current design is also great is many circumstances (perhaps better when number of tables is few).
Great work