Error message when creating a contact in vtiger CRM - crm

I try to add new contact into vtiger crm. But There is an Error message when creating a contact.
{"success":false,"error":{"code":"Record you are trying to access is not found","message":"Record you are trying to access is not found","title":null}}
.So please help me to resolve this error.

First Enable comments in config.inc.php Like as below
ini_set('display_errors','on'); version_compare(PHP_VERSION, '5.5.0') <= 0 ? error_reporting(E_WARNING & ~E_NOTICE & ~E_DEPRECATED) : error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT); // DEBUGGING
ini_set('display_errors','on'); error_reporting(E_ALL); // STRICT DEVELOPMENT
first give file permission from below DIR :
\libraries\log4php\LoggerManager.php in that find 0222 then replace with 0777
\libraries\log4php.debug\appenders\LoggerAppenderFile.php in that find 0222 then replace with 0777
Enable log4php debugging flag in config.performance.php
'LOG4PHP_DEBUG' => true,
Instead of
'LOG4PHP_DEBUG' => false,
Open log4php.properties file and put below line
log4php.rootLogger=DEBUG,A1
Instead of
log4php.rootLogger=FATAL,A1
Then after creating a contact in vtiger CRM and check error logs in \logs\vtigercrm.log or \logs\vtigercrm.log.1 files, It should have been a field twice or you need to Do SQL MODE = ''.

Enable log_sql in config.inc.php file, after that try to create new contact again.
Then check the adodb_logsql table for MySQL errors.
$dbconfig['log_sql'] = true;

Related

Wordpress site down after leadpage plugin installation

I have a Wordpress site and when updating a leadpages plugin, I am seeing the following error...
Parse error: syntax error, unexpected 'class' (T_CLASS), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in /home2/dhankaran/public_html/wp-content/plugins/leadpages/App/Bootstrap/AdminBootstrap.php on line 196
I don't know where this file resides so I cannot update the code. please help!
Thanks
DK
Switch your display errors OFF from cpanel or wp-config.php, This may be the issue...
// Write this code in wp-config.php
// log php errors
#ini_set('log_errors','On'); // enable or disable php error logging (use 'On' or 'Off')
#ini_set('display_errors','Off'); // enable or disable public display of errors (use 'On' or 'Off')
Also check wp_debug in wp-config.php
define('WP_DEBUG', false); // disable debugging mode

Issue with custome moduel installation in Sulu Admin

I have integrated the Example module in my Sulu-standard installation. The code I used for the example module is from following repository :
https://github.com/sulu/ExampleNewsBundle
And the steps I followed for integration are from this
http://blog.sulu.io/how-to-develop-a-bundle-in-the-sulu-admin-1
After the installation I am getting this error while loading the JS for the module :
"NetworkError: 404 Not Found - http://beauty_dev.com/en/bundles/examplenews/js/main.js?v=develop"
Error: Script error for: /bundles/examplenews/js/main.js http://requirejs.org/docs/errors.html#scripterror
var e = new Error(msg + '\nhttp://requirejs.org/docs/errors.html#' + id);
Error: Script error for: /bundles/examplenews/js/main.js http://requirejs.org/docs/errors.html#scripterror
var e = new Error(msg + '\nhttp://requirejs.org/docs/errors.html#' + id);
After some research I found that 404 error was due to locale(en) appended in the URL.
Is it possible to remove the locale from the URL?
Any reference will be appreciated.
After adding a new bundle you have to reinstall the assets using the following command:
app/console assets:install --symlink
Symfony doesn't do that automatically, so you have to execute this line, in order for the files to be copied to the web directory. You could also check if the accessed file is available in the web directory, which should be the case after executing the above command.
Regarding the language: You see that because Sulu tries to redirect to the default language if the current URL leads to a 404 and doesn't contain a language.
Are you sure that the files in the web/bundles/examplenews folder exists and you can access from the browser? When the files exists and the webserver returns them correctly the /de will not be prepended.

.bashrc file not created in ldap client machine when using ldap authentication

My objective is to configure a machine as client to use ldap authentication from a ldap server. I added user in ldap server. Also registered ldap service to be used by client.
But the problem is when I am trying to login into the ldap client machine, I am not getting the "user#hostname" prompt, instead I am getting "-bash-4.1$".
I searched and find its something to do with ".bashrc" files such as ".bash_history", ".bash_profile", ".bash_logout".
I can manually create these files but I want them to be automatically generated, and executed while login.
If anyone knows the cause of the problem and the solution please share.
Thanks,
Yogesh
You should create a script in /etc/profile.d for this propose, like that:
cat /etc/profile.d/bash_create.sh
a='export PS1="\[$(tput bold)\]\[$(tput setaf 2)\][\u#\h \W]\\$ \[$(tput sgr0)\]"'
b='export other variable'
c='export other variable'
d='alias ...."
if [ ! -f BASHRC ]; then #if not exists
echo -e "$a\n$b\n$c\n$d" >> $BASHRC
source $BASHRC #execute bash script
fi
I had this problem too and I solved deleting the "/home/< ldapuser >" and then I login again and the home directory was created. Also you can check if /etc/pam.d/system-auth has properly pam_oddjob_mkhomedir.so
session optional pam_oddjob_mkhomedir.so umask=0077
To enable mkhomedir you can run
authconfig --enablemkhomedir --update

How do I turn off deprecated warnings of the cakephp console?

I'm using CakePHP 1.3.16 with PHP 5.4.6. The new PHP version caused a few deprecated warnings with old 1.3 CakePHP applications, which were fixed by updating to the 1.3.16 version. Unfortunately, I'm still getting deprecated warnings when using the console, which is quite annoying, and I can't find the place to turn them off. Here's what I tried:
I checked the error reporting in the php.ini files, in both /etc/php5/cli/php.ini (which should be used by command line php scripts) and /etc/php5/apache2/php.ini: in both cases it says error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT.
I modified all lines saying error_reporting($reporting) in the /cake/libs/configure.php to say error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT).
I ran a recursive search for 'error_reporting' in the cake directory. Whenever it showed up, deprecated warnings were switched off by default. Still, I am getting them on the console.
Did anyone else run into this problem?
For cakephp 3.* just set the following value in your config/app.php file:
// in config/app.php
'Error' => [
'errorLevel' => E_ALL ^ E_DEPRECATED ^ E_USER_DEPRECATED,
]
In app/Config/core.php change debug mode to 0:
Configure::write('debug', 0);

"public://public://user-pictures does not exist" when trying to change user profile photo path

I'm trying to change the path for the user profile pictures in a Drupal 7 installation and I'm getting the following error:
The directory public://public://user-pictures does not exist or is not
writable.
The path that I'm entering is simply "user-profiles".
I tried resetting the variable stored in the database by using the value from a new installation:
UPDATE variable
SET value=0x733A313A2231223B
WHERE name = 'user_pictures';
The update was successful but the problem remained.
Does anybody know how to correct this or where this value is stored in the database?
Thanks
user_pictures is a boolean variable, you're probably looking for user_picture_path.
Since variable values are stored in serialised PHP arrays it'll be much easier to update that path using the API:
variable_set('user_picture_path', 'user-profiles');
Similar to Clive answer, you can use drush from the command line :
drush vset user_picture_path your_path
I got the same error and am able to solve the issue.
“public://public://user-pictures does not exist” when trying to change user profile photo path."
What is did: Navigated to mysite.com/admin/config/people/accounts
in 'Picture directory' field default value was 'pictures', i have changed the directory name to my custom directory name 'prof_images' and now when i try to save the settings, i started getting the above error. I have cross checked the Directory name and permission but everything was fine.
How i solved the issue:
Navigated to Drupal core modules folder /modules/user and commented the following lines:
Blockquote
if (!file_prepare_directory($picture_path, FILE_CREATE_DIRECTORY)) {
form_set_error('user_picture_path', t('The directory %directory does not exist or is not writable.', array('%directory' => $picture_path)));
watchdog('file system', 'The directory %directory does not exist or is not writable.', array('%directory' => $picture_path), WATCHDOG_ERROR);
}
Blockquote
After clearing the cache, everything went cool.
Navigated to mysite.com/admin/config/people/accounts and set 'prof_images' as my user image directory and saved the settings. This time my settings are saved without any problem.
Then uncommented the above lines in the user module and everything worked as usual.
Hope this will help someone.
Thanks

Resources