Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    • CommentAuthorpixel-boutique.de
     
    I have tried to install Akelos on my local Development machine that runs Xamp on php 5

    I found strange behaviour when trying to do that blg in 20min screencast:
    on the post Blog scaffold no data is saved, fields are blank.

    After poking around, I found in

    ------------------------------------------
    akelos/lib/AkActiveRecord.php
    ------------------------------------------
    function getColumnsForAtrributes($attributes)
    {
    $ret_attributes = array();
    $table_name = $this->getTableName();
    if(!empty($attributes) && is_array($attributes)){
    $columns = $this->getColumns();
    foreach ($attributes as $k=>$v){
    $k = str_replace($table_name.'.','',$k);
    if(isset($columns[$k]['name'][$k])){
    $ret_attributes[$k] = $v;
    }
    }
    }
    return $ret_attributes;
    }
    ---------------------------------------------------
    $attributes has keys and values from the posted form, but $ret_atributes is empty.

    changed
    if(isset($columns[$k]['name'][$k])) {

    to
    if(isset($columns[$k]['name'])) {

    and its working but the AkActiveRecord is full of that - and it runned on linux (but had other probs there).

    ?

    Greetings,
    Chris
    •  
      CommentAuthorbermi
     

    Hi Chris,

    Can you open a ticket with a unit test so we can reproduce the bug you mention?

    Before doing it so, please try to update to the latest version as there was an odd bug reintroduced by one of the latests PATCHES which has been fixed now.

    • CommentAuthorpixel-boutique.de
     
    Hi Bermi,

    ha! You were faster than me :) I did an upgrade to the current XAMPP (the one I used & got this strange errors was 2.5 years old).
    With this mysql5 there is not any problem regarding the scaffolds.

    However, I will try to open this ticket.

    Greetings,
    Chris