Â
I am new with both programming and yetiforce.Â
I do not know what is wrong with the setting, but non-admin users can are locked to see newly configed filter. It says: Incorrect request ERR_NO_PERMITTED_TO_VIEW. I then found the tickets Filter not working #6258 https://github.com/YetiForceCompany/YetiForceCRM/issues/6258 and https://yetiforce.com/en/knowledge-base/documentation/administrator-documentation/item/enable-cron, but I do not understand much :Â



Logs
configuration verification screen shot
Dear Mariusz, Many thanks for the swift reply. So, where to config the Screenshop Verification, please.
https://github.com/YetiForceCompany/YetiForceCRM/issues/4457 I found a bit more here.
Just found out that in Filters Configuration, if set the new filter as Public, then I can be used by non-admin users.

Set a path in the file */cron/vtigercron.sh: Can not find the VTIGERCRON.SH in the CRON folder.

Look for cron.sh.
vtigercron.sh available up to ver. 4.2.
PS: I did not find the cron.log 2>&1 file, so I just added one in the Cache/logs foler, but it is empty.

This is the setted cron jobs:

cron.log 2>&1 command for logging. Php cron string also not needed.
deleted the PHP cron string

Now it should work. File cron.log 2>&1 not needed.
File cron.sh should be confired too
Run cron manually by URL, you must be logged in to CRM
example: https://gitdeveloper.yetiforce.com/cron.php
i have tried as suggested, unfortunately the cron is till NOT working. It is great, however, Marius is working on Yetiforce 5.0 and it is almost completed.

The file permission is changed to 775. As the image below:

The path is set as:

The result:

Run cron manually by URL, you must be logged in to CRM
example: https://gitdeveloper.yetiforce.com/cron.php
I am happy to give you the user name and password of my yetiforce, if this can be helpful. Pls kindly send a quick email to [email protected] OR any other info that you need about the server or yetiforce admin, pls let me know.
Look for cron.sh.
vtigercron.sh available up to ver. 4.2.
Many thanks. Yes, I found cron.sh.
Your cron.sh file incorrect: you two times use USE_PHP variable. I'm not sure but I think 2nd one overrides 1st.
2nd php path targets to php 5.6 but this php version not applicable for 4.2+ versions of yetiforce
Your cron.sh file incorrect: you two times use USE_PHP variable. I'm not sure but I think 2nd one overrides 1st.
2nd php path targets to php 5.6 but this php version not applicable for 4.2+ versions of yetiforce
SO, VOV, how do I set the path here, pls? The info. below is on the cron.sh file.
#*********************************************************************************
# The contents of this file are subject to the vtiger CRM Public License Version 1.0
# ("License"); You may not use this file except in compliance with the License
# The Original Code is: vtiger CRM Open Source
# The Initial Developer of the Original Code is vtiger.
# Portions created by vtiger are Copyright (C) vtiger.
# All Rights Reserved.
#
# ********************************************************************************
export CRM_ROOT_DIR=`dirname "$0"`/..
export USE_PHP=php
#export USE_PHP=/usr/local/php53/bin/php
#export USE_PHP=/usr/local/php56/bin/php56
export USE_PHP=/usr/local/php56/bin/php
cd $CRM_ROOT_DIR
# TO RUN ALL CORN JOBS
$USE_PHP -f cron.php
You can request correct php path from your hoster.
If you have acess to terminal/ssh, you can try whereis php command
php path
Great. I will send to the hoster a ticket.
Can this be the PHP Path?
include_path | .:/opt/alt/php71/usr/share/pear

I'm not sure. Try this /usr/php/71/usr/bin/php-cli
if you do not run the cron by url when you are logged in, then running SH and CLI will not work either.
let's start with the essential things
without this, we will not move on, this is usually the cause of the error because it works everywhere
if you do not run the cron by url when you are logged in, then running SH and CLI will not work either.
let's start with the essential things
- logs
- Screenshots verification verification
without this, we will not move on, this is usually the cause of the error because it works everywhere
Many thanks for the reply. So, first thing: what do you want me to do with the logs? Can you pls give me a bit more detailed instruction?
I'm not sure. Try this
/usr/php/71/usr/bin/php-cli
Still not working, I am waiting for the reply from the hoster. Hopefully soon.

Put # before line 12 and try
Put
#before line 12 and try
Tried, but still not functioning.

the reply from the hoster, but I still have no idea about how to get that.

Please include a part of logs which describes when the error occurred. The more info you provide, the quicker we will be able to solve your problem. Description how to enable logs can be found here: https://yetiforce.com/en/knowledge-base/documentation/developer-documentation/item/debugging Additionally, include a screenshot of your browser’s console (e.g. press F12 in Google Chrome).
ex. cache/logs/phpError.log, cache/logs/system.log,
enable full logs and run cron via url and cli
Copy code from hoster reply from < to>. Create file info.php in your crm root and put there this code. Open this file by url yourdomain.com/info.php
Therefore, the system has a built-in tool to verify the configuration so that you do not need a phpinfo. verification shows much more than phpinfo
PHP/Apache/Nginx/Browser/CRM Logs
Please include a part of logs which describes when the error occurred. The more info you provide, the quicker we will be able to solve your problem. Description how to enable logs can be found here: https://yetiforce.com/en/knowledge-base/documentation/developer-documentation/item/debugging Additionally, include a screenshot of your browser’s console (e.g. press F12 in Google Chrome).
ex. cache/logs/phpError.log, cache/logs/system.log,
my **/cache/logs file is pretty much empty. There are only two files, i.e., cron.log and index.html and the Cron.log file is empty. Guess there is something wrong somewhere.

PHP/Apache/Nginx/Browser/CRM Logs
Please include a part of logs which describes when the error occurred. The more info you provide, the quicker we will be able to solve your problem. Description how to enable logs can be found here: https://yetiforce.com/en/knowledge-base/documentation/developer-documentation/item/debugging Additionally, include a screenshot of your browser’s console (e.g. press F12 in Google Chrome).
ex. cache/logs/phpError.log, cache/logs/system.log,
when the error occourred:

https://github.com/YetiForceCompany/YetiForceCRM/issues/9022#issuecomment-451073137
https://github.com/YetiForceCompany/YetiForceCRM/blob/6bb53abeddd56543e815ca46f94961f8a7252e21/config/debug.php#L9-L77
Set the configuration so and try to call error
'LOG_TO_FILE' => true,
'LOG_LEVELS' => ['error', 'warning'],
'LOG_TRACE_LEVEL' => 9,
'SQL_DIE_ON_ERROR' => true,
'DEBUG_CRON' => true,
'SMARTY_ERROR_REPORTING' => E_ALL & ~E_NOTICE,
'JS_DEBUG' => true,
'DISPLAY_EXCEPTION_BACKTRACE' => true,
'DISPLAY_EXCEPTION_LOGS' => true,
'EXCEPTION_ERROR_LEVEL' => E_ALL & ~E_NOTICE,
'DAV_DEBUG_EXCEPTIONS' => true,
'DAV_DEBUG_PLUGIN' => true,
'WEBSERVICE_SHOW_ERROR' => true,
'WEBSERVICE_DEBUG' => true,
'MAILER_DEBUG' => true,
If there are no logs then changle this code
// Turn on the error handler
'EXCEPTION_ERROR_HANDLER' => true,
// Save logs to file (cache/logs/errors.log)
'EXCEPTION_ERROR_TO_FILE' => true,
// Display errors
'EXCEPTION_ERROR_TO_SHOW' => true,
attach all files from the catalog "cache/logs"
roger that.
here is it, the error code:


]====================================================================================================================================
2019-01-30 14:49:08.9071 [error] - ERR_NO_PERMITTED_TO_VIEW
App\Exceptions\NoPermitted: ERR_NO_PERMITTED_TO_VIEW in /home/buukcguc/public_html/erp/app/CustomView.php:644
Stack trace:
more: the below appeared when i chose the filter.

Ă—
Incorrect request
ERR_NO_PERMITTED_TO_VIEW
vtiger_tab || yii\db\Command::queryvtiger_entityname || yii\db\Command::queryvtiger_customview WHERE (entitytype='Contacts') AND ((userid='30') OR (status=0) OR (status=3) OR (userid IN (SELECT vtiger_user2role.userid FROM vtiger_user2role INNER JOIN vtiger_users ON vtiger_users.id = vtiger_user2role.userid INNER JOIN vtiger_role ON vtiger_role.roleid = vtiger_user2role.roleid WHERE vtiger_role.parentrole LIKE 'H1::H2::H38::%'))) ORDER BY sequence || yii\db\Command::queryu_yf_browsinghistory || yii\db\Command::querykcu.constraint_name,
kcu.column_name,
kcu.referenced_table_name,
kcu.referenced_column_name
FROM information_schema.referential_constraints AS rc
JOIN information_schema.key_column_usage AS kcu ON
(
kcu.constraint_catalog = rc.constraint_catalog OR
(kcu.constraint_catalog IS NULL AND rc.constraint_catalog IS NULL)
) AND
kcu.constraint_schema = rc.constraint_schema AND
kcu.constraint_name = rc.constraint_name
WHERE rc.constraint_schema = database() AND kcu.table_schema = database()
AND rc.table_name = 'u_yf_browsinghistory' AND kcu.table_name = 'u_yf_browsinghistory' || yii\db\Command::query
u_yf_browsinghistory (userid, date, title, url) VALUES (30, '2019-01-30 15:43:32', 'Contacts List [Filter: test chaosun]', 'index.php?module=Contacts&page=1&view=List&viewname=136&orderby=&sortorder=&entityState=Active&search_params=&search_key=lastname&search_value=') || yii\db\Command::executevtiger_links || yii\db\Command::querys_yf_companies WHERE default=1 LIMIT 1 || yii\db\Command::queryu_yf_browsinghistory WHERE userid='30' ORDER BY id DESC LIMIT 20 || yii\db\Command::queryvtiger_actionmapping || yii\db\Command::queryvtiger_customview WHERE cvid=136 LIMIT 1 || yii\db\Command::queryvtiger_users.id FROM vtiger_customview INNER JOIN vtiger_users WHERE (vtiger_customview.cvid=136) AND (vtiger_customview.userid IN (SELECT vtiger_user2role.userid FROM vtiger_user2role INNER JOIN vtiger_users ON vtiger_user2role.userid = vtiger_users.id INNER JOIN vtiger_role ON vtiger_user2role.userid = vtiger_role.roleid WHERE vtiger_role.parentrole LIKE '%H1::H2::H38::%')) || yii\db\Command::queryo_yf_access_for_user || yii\db\Command::querykcu.constraint_name,
kcu.column_name,
kcu.referenced_table_name,
kcu.referenced_column_name
FROM information_schema.referential_constraints AS rc
JOIN information_schema.key_column_usage AS kcu ON
(
kcu.constraint_catalog = rc.constraint_catalog OR
(kcu.constraint_catalog IS NULL AND rc.constraint_catalog IS NULL)
) AND
kcu.constraint_schema = rc.constraint_schema AND
kcu.constraint_name = rc.constraint_name
WHERE rc.constraint_schema = database() AND kcu.table_schema = database()
AND rc.table_name = 'o_yf_access_for_user' AND kcu.table_name = 'o_yf_access_for_user' || yii\db\Command::query
o_yf_access_for_user (username, date, ip, module, url, agent, request, referer) VALUES ('SUN Chao General', '2019-01-30 15:43:32', '223.104.170.113(HTTP_X_FORWARDED_FOR: 137.59.148.201)', 'Contacts', 'http://erp.overseaser.com/index.php?module=Contacts&page=1&view=List&viewname=136&orderby=&sortorder=&entityState=Active&search_params=&search_key=lastname&search_value=', 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.146 Safari/537.36', '{\"module\":\"Contacts\",\"page\":\"1\",\"view\":\"List\",\"viewname\":\"136\",\"orderby\":\"\",\"sortorder\":\"\",\"entityState\":\"Active\",\"search_params\":\"\",\"search_key\":\"lastname\",\"search_value\":\"\",\"__utmz\":\"268026320.1545735325.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none)\",\"__utma\":\"146133216.1277113011.1545754158.1545754158.1545754158.1\",\"mybb\":{\"lastvisit\":\"1545888430\",\"lastactive\":\"1545888535\"},\"loginattempts\":\"1\",\"mybbuser\":\"1_9y7ryd3iojwt72c3cbk2jeomry4bdzzefh7uxjlgtstcddjjbz\",\"YTSID\":\"9ed4d215396a820be5ef3f1849711152\"}', '-') || yii\db\Command::executeApp\Exceptions\NoPermitted: ERR_NO_PERMITTED_TO_VIEW in app/CustomView.php:644
Stack trace:
More in system.log:

2019-01-30 14:49:03.4315 [warning] - Language file does not exist, module: Vtiger ,language: en_us

Copy code from hoster reply from < to>. Create file info.php in your crm root and put there this code. Open this file by url yourdomain.com/info.php
hoster suggested this: open URL http://erp.overseaser.com/phpinfo.php, then find the Path, but I did not seem to find the PHP PATH.

@andrewchaosun you need to look around this path /opt/alt/php71/
Dear All, Guess this CRON is still not working. But, when do you think that we could have the V5.0 published, pls?
Keep in mind what you need working CRON for every version of system
Keep in mind what you need working CRON for every version of system
I tough the updating might sort that out. I am totally lost here with the cron, it just simply does not work.
Run cron manually by URL, you must be logged in to CRM
example: https://gitdeveloper.yetiforce.com/cron.php
Pls give me more instructions, as the https://gitdeveloper.yetiforce.com/cron.php indicating a lot of coding.
Just tried to enalbe cron through the URL https://gitdeveloper.yetiforce.com/cron.php?app_key=b485fbf2bbdd4316e24b627d545d52aa172aac98 following the instructions, but still NOT working.
--------------- 2019-02-12 04:27:29 | Start CRON ----------
2019-02-12 04:27:29 | LBL_UPDATER_COORDINATES - Start task
2019-02-12 04:27:29 | LBL_UPDATER_COORDINATES - End task (0 s)
2019-02-12 04:27:29 | LBL_UPDATER_RECORDS_COORDINATES - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_WORKFLOW - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_SCHEDULED_IMPORT - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_MAIL_SCANNER_ACTION - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_MAIL_SCANNER_VERIFICATION - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_MAIL_SCANNER_BIND - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_MAILER - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_CARD_DAV - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_CAL_DAV - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_ACTIVITY_STATE - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_SEND_REMINDER - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_SEND_NOTIFICATIONS - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_MULTI_REFERENCE_VALUE - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_CRMACTIVITY_DAYS - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_ASSETS_RENEWAL - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_SOLD_SERVICES_RENEWAL - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_RECORD_LABEL_UPDATER - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_PRIVILEGES_UPDATER - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_ADDRESS_BOOK - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_MARK_RECORDS_AS_REVIEWED - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_CACHE - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_NEVER_ENDING_RECURRING_EVENTS - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_CLEAR_FILE_UPLOAD_TEMP - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_SMSNOTIFIER - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_BROWSING_HISTORY - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBK_SYSTEM_WARNINGS - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_BATCH_PROCESSES - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_BATCH_METHODS - Not ready to run as the time to run again is not completed
2019-02-12 04:27:29 | LBL_SESSION_CLEANER - Start task
2019-02-12 04:27:29 | LBL_SESSION_CLEANER - End task (0.01 s)
2019-02-12 04:27:29 | LBL_CURRENCY_UPDATE - Not ready to run as the time to run again is not completed
=============== 2019-02-12 04:27:29 (0.01) | End CRON ==========
As I can see in your last message your cron started.
As I can see in your last message your cron started.

hi, VOV, NOT YET.
Why you use gitdeveloper URl in previous message. Put your domain instead gitdeveloper. Yetiforce. Com
https://erp.overseaser.com/cron.php?app_key=b485fbf2bbdd4316e24b627d545d52aa172aac98
Why you use gitdeveloper URl in previous message. Put your domain instead gitdeveloper. Yetiforce. Com
Just tried, but i says The server can not find the requested page:

it means that you do not have this file, that's why cron does not work
it means that you do not have this file, that's why cron does not work
If I update to v5.0, will the missing file be reinstalled?
50/50
50/50
If there a way that i can sort that out? for example, i download a file, then upload it to a specific folder?

Is this The cron.php file? I have changed the permission to 775.


it works now. eventually. thank you all.