I have installed SkaDate, but it's creating auth.php creating error. I am getting the error:
bruce attack account is locked.
Its having auth.php file for validating login details.
Although in MySQL database value for admin username and password same I enter then also getting this error.
SkaDate is a dating software package.
To remove this notification, go through $internal_c/lang/config.php file
find the code around line number 7469 this code looks something similar to this.
'try_number' =>
SK_ConfigDtoObject::__set_state(array(
'config_id' => '208',
'config_section_id' => '63',
'name' => 'try_number',
'value' => 5,
'presentation' => 'integer',
'description' => NULL,
'php_validation' => NULL,
'js_validation' => NULL,
)),
Here, set the value to zero, like
'try_number' =>
SK_ConfigDtoObject::__set_state(array(
'config_id' => '208',
'config_section_id' => '63',
'name' => 'try_number',
'value' => 0,
'presentation' => 'integer',
'description' => NULL,
'php_validation' => NULL,
'js_validation' => NULL,
)),
Also set the lock_stamp attribute to zero, like
'lock_stamp' =>
SK_ConfigDtoObject::__set_state(array(
'config_id' => '206',
'config_section_id' => '63',
'name' => 'lock_stamp',
'value' => 0,
'presentation' => 'integer',
'description' => NULL,
'php_validation' => NULL,
'js_validation' => NULL,
)
And the last step is, in the config table, search the config_section_id (here it's 63, see above code) and change the values of 'try_number' and 'lock_stamp' attributes to zero.
This should solve your problem....
I can't locate you in our database, so please let me know your Client IDs in SkaDate system. We are more than happy to help you with any issues we'll be glad to answer any of your questions. Just visit www.skadate.com and drop us a line.
Related
After I set the 'foreign_sortby' => 'datum'; this field is missing now at my edit mask. Does anybody know why?
TCA of tx_veranstaltungen_domain_model_terminblock (1 terminblock can have multiple termine)
'termine' => array(
'exclude' => 1,
'label' => 'LLL:EXT:veranstaltungen/Resources/Private/Language/locallang_db.xlf:tx_veranstaltungen_domain_model_terminblock.termine',
'config' => array(
'type' => 'inline',
'foreign_table' => 'tx_veranstaltungen_domain_model_termin',
'foreign_field' => 'terminblock',
'foreign_sortby' => 'datum',
'maxitems' => 9999,
'appearance' => array(
'collapseAll' => 0,
'levelLinksPosition' => 'top',
'showSynchronizationLink' => 1,
'showPossibleLocalizationRecords' => 1,
'useSortable' => 1,
'showAllLocalizationLink' => 1
),
),
),
Okay I found it out whats the problem, after reading Bug report
You should use foreign_default_sortby instead of foreign_sortby, because IRRE hides the field you use for sorting. The dangerous thing is, that the field could be overwritten by "sorting values". So I wondered why all my fields (of type date (timestamp)) has the value 01.01.1970... because the field values changed to 1,2,....
I hope this can help others, before they destroy their data. :)
(I'm using Typo3 7.6.14)
I have written below code in custom_notifications.install file.
When I am trying to enable that module its giving me error "The website encountered an unexpected error. Please try again later."
kindly help me with this.
function custom_notifications_schema() {
$schema['custom_notification_log'] = array(
'fields' => array(
'cnl' => array('type' => 'serial', 'unsigned' => TRUE, 'not null' => TRUE),
'notification_type' => array('type' => 'varchar', 'length' => 64),
'notification_type_id' => array('type' => 'int', 'unsigned' => TRUE),
'uid' => array('type' => 'int', 'unsigned' => TRUE),
'viewed_on' => array('type' => 'int', 'unsigned' => TRUE),
)
);
return $schema;
}
A couple things to try:
1) Look at your dblog (Reports -> Recent log messages) for PHP errors providing more information.
2) Go to the Uninstall tab and see if your module is listed. If it is, then uninstall it, then attempt to re-install.
SERIAL is an alias for BIGINT UNSIGNED NOT NULL AUTO_INCREMENT UNIQUE. try removing the unsigned and not null keys for your cnl field
I have an application that I work in that is experiencing a problem where randomly a blank page loads.
I've found that the beforeFilter function fires but it never goes into the action of the controller that is being called at that time. I have also found that the session when this happens can not be found. session_status() returns PHP_SESSION_NONE. When the page is reloaded php can magically find the session again and the page loads normally.
Any help is appreciated. If you need/would like more information just let me know.
EDIT:
AppController beforeFilter
public function beforeFilter() {
parent::beforeFilter();
// Log all access to applictaion
$this->AccessLog->logPageAccess($this->request, $this->Session);
// Read the app's desired datetime display and set as view variable for TimeHelper use.
if(Configure::check('Datetime.dateDisplayFormat')) {
$timeFormat = Configure::read('Datetime.dateDisplayFormat');
$this->set(compact('timeFormat'));
}
}
Session Auth.User when session found
array(
'password' => '*****',
'id' => '44',
'role_id' => '5',
'username' => 'user',
'password_token' => null,
'email' => 'user#example.com',
'email_verified' => true,
'email_token' => null,
'email_token_expires' => null,
'active' => true,
'is_login_locked' => false,
'last_login' => '2015-02-04 16:41:47',
'last_action' => null,
'created' => '2014-07-07 12:45:46',
'modified' => '2015-02-04 16:41:47',
'created_by' => '19',
'modified_by' => '44',
'deleted' => false,
'deleted_date' => null,
'account_locked' => false,
'lu_theme_id' => '4',
'first_name' => 'Joe',
'last_name' => 'Bloggs',
'Role' => array(
'id' => '1',
'name' => 'User',
'is_admin' => false
)
)
$_SESSION when not found
array()
Are you running an array of servers under a load balancer? I've seen session weirdness in that type of environment before now.
I'm stuck in retrieving some sort of data in my view. I have to list information of a certain "Job", which has different attributes already stored in the database.
For example, I'd like to get the field of 'weighting' listed.
The debug($this->viewVars) prints me this (which represents what's stored in the DB):
'JobValues' => array(
(int) 0 => array(
'id' => '1',
'yearly_job_id' => '1',
'institution_type_id' => '1',
'norm_rate' => '5',
'weighting' => '5.00',
'standard_value' => '5.00',
'education_weeks' => '5.0',
'group_distribution' => '0.50',
'YearlyJob' => array(
'id' => '1',
'year_id' => '1',
'job_id' => '1',
'full_time_jobs_needed' => true,
'education_count_needed' => true,
'is_care' => true
),
Normally I would just print this: echo([JobValue][weighting]);, but there is a number in between, so echo([JobValue][1][weighting]); won't lead to success. What could I implement in my view (or model)? Any advice is highly appreciated.
For printing out the data, if there's only one top level of array, just remove it. print_r(array_shift($foo['JobValues']['weighting']));
If there are multiple arrays on the same level, you need to do a foreach to iterate into each one of the record.
A common task for me when I'm writing CakePHP applications is to type out an SQL file and write it into the database before running bake to generate some scaffolding. This is one of the very few gripes I have with CakePHP - doing this ties me into MySQL, and I'm wondering if there's a better way to do it through code. As an example, in some frameworks I can define the columns that my model uses along with the datatype and such, and then run a command through an admin interface to "build" the database based on what what's presented in the code. It will do this on whatever database is sitting behind the framework.
Is there a way for CakePHP 2.x can do something like this? I want to write out the database schema in my Model code and run a command like bake to automatically generate the tables and columns that I need. After diving into the cookbook docs, the _schema attribute seems to do what I want to do:
class Post{
public $_schema = array(
'title' => array('type'=>'text'),
'description' => array('type'=>'text'),
'author' => array('type'=>'text')
);
}
but there are no examples explaining what I would I do from there. Does the _schema attribute serve a different purpose? Any help would be appreciated!
not from your $_schema array itself. but creating and using a schema file schema.php in /APP/Config/Schema.
you can then run the bake command "cake schema create" which will then "Drop and create tables based on the schema file."
I might then look sth like this:
class YourSchema extends CakeSchema {
public $addresses = array(
'id' => array('type' => 'integer', 'null' => false, 'default' => NULL, 'length' => 10, 'key' => 'primary'),
'contact_id' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => 10),
'type' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => 2),
'status' => array('type' => 'integer', 'null' => false, 'default' => '0', 'length' => 2),
'email' => array('type' => 'string', 'null' => false, 'default' => NULL, 'length' => 50, 'collate' => 'utf8_unicode_ci', 'comment' => 'redundant', 'charset' => 'utf8'),
'created' => array('type' => 'datetime', 'null' => false, 'default' => NULL),
'modified' => array('type' => 'datetime', 'null' => false, 'default' => NULL),
'indexes' => array('PRIMARY' => array('column' => 'id', 'unique' => 1)),
'tableParameters' => array('charset' => 'utf8', 'collate' => 'utf8_unicode_ci', 'engine' => 'MyISAM')
)
// more tables...
}