<div dir="ltr">Hi Ruben,<br><div><br></div><div>I agree with you on making changes to 701_to_710.php script as part of 7.2 release, Please do refer this <a href="https://code.vtiger.com/vtiger/vtigercrm/issues/1094">issue</a> for complete details.</div><div><br></div><div>I am not sure on why were you not able to see the footer, Let me re-check this and update you.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Dec 3, 2019 at 12:24 AM Rubén A. Estrada Orozco <<a href="mailto:rulotec1@gmail.com">rulotec1@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Uma, I'm back</div><div><br></div><div>After a new migration I think that what happened in the problem I reported earlier is that the 7.0.1 to 7.1.0 migration failed. Thus, when executing the 7.1.0 to 7.2.0 migration, the 701_to_710.php script was executed again. I also noticed that the 701_to_710.php script is changed in the 7.2 upgrade.</div><div><br></div><div>file 701_to_710.php in 7.1 upgrade looks like this in the "generalize tag fields" section:</div><div><div><img src="cid:ii_k3os1bk90" alt="image.png" style="margin-right: 0px;"><br></div></div><div><br></div><div>And the same block of code looks like this in the 7.2 upgrade (notice the $restrictedModules var was introduced):</div><div><br></div><div><div><img src="cid:ii_k3os2ddj1" alt="image.png" style="margin-right: 25px;"><br></div></div><div><br></div><div><br></div><div>Why would you change that script if it is not supposed to be executed when migrating from 7.1.0 to 7.2.0?</div><div><br></div><div><br></div><div>Another issue I found when changing from 7.1 to 7.2 is that the footer (where vtiger's version normally appears) disappeared. This one: </div><div><img src="cid:ii_k3os8dxd2" alt="image.png" width="435" height="43"><br></div><div><br></div><div>If I look into the html code, its there:</div><div><div><img src="cid:ii_k3osbmey3" alt="image.png" width="535" height="188"><br></div></div><div><br></div><div>But it disappeared from my UI. I don't see any php or javascrip errors on the inspector.</div><div><br></div><div>Thanks for your help!</div><div><br clear="all"><div><div dir="ltr"><div dir="ltr">Saludos<div><br></div><div>Rubén</div></div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Nov 15, 2019 at 12:18 AM Uma S <<a href="mailto:uma.s@vtiger.com" target="_blank">uma.s@vtiger.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Sure! Ruben, will wait for your response.<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 14, 2019 at 11:48 PM Rubén A. Estrada Orozco <<a href="mailto:rulotec1@gmail.com" target="_blank">rulotec1@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thanks Uma,<div><br></div><div>I've done two migrations so far and it happened in both. I didn't look into vtiger_version and vtigerversion.php but at the botton of vtiger's UI the version was 7.1.0.</div><div><br></div><div>I will keep an eye on that for the next migration and report back.<br><div><br></div><div><br></div><div><br clear="all"><div><div dir="ltr"><div dir="ltr">Saludos<div><br></div><div>Rubén</div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 14, 2019 at 7:13 AM Uma S <<a href="mailto:uma.s@vtiger.com" target="_blank">uma.s@vtiger.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Ruben,<br><div><br></div><div>Sorry! I could not able to reproduce this issue, while migrating from 7.1.0 to 7.2.0, Please do check this <a href="https://sc.vtiger.in/screenshots/uma-sc-at-14-11-2019-18-31-43.png" target="_blank">Screen-sScreen-shothot</a>.</div><div><br></div><div>Can you please verify what is the current version of your source during migration? from vtiger_version table and vtigerversion.php file? </div><div><br></div><div>Only with respect to this current version, it executes the migration file. I expect something is going wrong there.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Nov 14, 2019 at 9:28 AM Rubén A. Estrada Orozco <<a href="mailto:rulotec1@gmail.com" target="_blank">rulotec1@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Thanks for the tips! I'll try them out in my next migration. Running the migration scripts from cli sounds attractive. <div><br></div><div>I hope Uma, ore somebody from VT can comment on why the 701 -> 710 schema script is run on the 7.1.0 to 7.2.0 migration.<div><br></div><div><br clear="all"><div><div dir="ltr"><div dir="ltr">Saludos<div><br></div><div>Rubén</div></div></div></div><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 13, 2019 at 1:37 PM Alan Lord <<a href="mailto:alanslists@gmail.com" target="_blank">alanslists@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 13/11/2019 19:06, Rubén A. Estrada Orozco wrote:<br>
> Thanks for the input Alan! It's very helpful.<br>
<br>
> 1. How do you turn on the logs in the case of migrations? I have tried <br>
> enabling it by setting 'LOG4PHP_DEBUG' => true in config.performance.php <br>
> without luck :( It has been very frustrating that migration scripts just <br>
> silently fail and I can't get fatal errors to display.<br>
<br>
You also need to edit the log4php.properties file to enable debug <br>
logging; change where it says "FATAL" to "DEBUG".<br>
<br>
> 2. How do you run the migration scripts by the command line? I assume <br>
> running for example php -f 701_to_710.php wouldn't work because of <br>
> dependencies in the script.<br>
<br>
It's probably not something I would recommend unless you know what you <br>
are doing or have lots of time to play, test & fail ;-) It's a thing <br>
I've been working on (on and off) since 2015 according to my git commit <br>
history ;-)<br>
<br>
Anyway - basically you need to do this:<br>
<br>
Depending on the process (New Installation, or a Migration) you need to <br>
set the VTIGER_UPGRADE and/or INSTALLATION_MODE constants. You need <br>
include a few files at the top such as the config.php and the WebbUI.php <br>
so the class loader works. Then it is helpful, but not essential, to <br>
edit the scripts so the output is readable on the cli as most of it is <br>
echoed with html tags such as br, p etc... I also turn on php <br>
error_reporting as this can be a lot more helpful than the debug logs.<br>
<br>
You also really have to run the scripts as the web-server user because <br>
they need write access to the vtiger filesystem... I would never <br>
recommend using a super user account. FWIW on linux I create a <br>
.bash_alias entry for this<br>
<br>
alias phpwww='sudo -u www-data php'<br>
<br>
so from the command line I just need to type<br>
<br>
# phpwww file-to-run.php<br>
<br>
Hope that helps<br>
<br>
Al<br>
<br>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr">With<br>Best Regards<br>Uma.S<br><div>Vtiger Team</div></div></div>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr">With<br>Best Regards<br>Uma.S<br><div>Vtiger Team</div></div></div>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div>
_______________________________________________<br>
<a href="http://www.vtiger.com/" rel="noreferrer" target="_blank">http://www.vtiger.com/</a></blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr">With<br>Best Regards<br>Uma.S<br><div>Vtiger Team</div></div></div>