How to upgrade SC

[QUOTE=MikeDE;38961]thanks Giu, i read your last post
now i have my main scriptcase upgraded to 8.1 ok but still on php 5.4
if i go new isntallation, i will need to import a lot of things, i have 10k of icons and images and many test projects all in my 8.1 now… also i have themes, html templates and a lot of stuff which i don’t want to start over and waste time
need is to upgrade the php only to 5.6 so i get the performance improvement, any idea will be appreciated, i think if try the installer and override the current version will do? but not sure, anybody tried sometimes else?[/QUOTE]

I understand. Well, you can do a complete SC backup (from configuration) instead export project. It exports all SC items (projects included).

Right now don’t know if there are better option (and don’t know if scriptcase core is different between php versions) but, you can try, for example:
install scphp5.6
rename scriptcase inside wwwroot folder to sc56…
Take youre scriptcase folder inside you sc54 wwwrot folder and copy to wwwroot php56 folder.
now open local host scriptcase for php56 and check I its all ok.

ok here is what i’ve done so far,

installed fresh 8.1 from installer on different directory of version 8.0

tried to backup general from 8.0 from settings > backup, gave me

The requested URL /scriptcase/devel/iface/admin_serv_backup2.php was not found on this server

tried to copy this file of the backup from the other the 8.1 (backup2.php) and copy it to 8.0 -no luck, i was caught

so now i have 8.1 (upgraded from 8.0) functining well with php 5.4 - all projects, themes, icons, customization… all ok

and my fresh 8.1 is new, no license, no projects no icons, no themes, nothing i could do to import my themes and customized stuff from 8.0 yet

still stuck actually

and yeah, something else… the interface of 8.1 is better than 8.0 upgraded to 8.1… even the icons and the toolbar of the IDE is different, so is better to work on the new one 8.1 with php 5.6 but still everything i have as i said, specially the themes and customized stuff all projcts are in the old one 8.1. …

so still need help here, any other suggestion?

Just a quick clarification: to deploy 8.1 apps to an existing 8.0 production environment, I would have to deploy the whole app afresh right? i.e. _lib folder especially. In other words I cannot expect the 8.1 apps to work with the 8.0 _lib folder?

Thank you Giuseppe
changing theme it works well
bye
Gio

Fatal Error

Hi, Mr. Gui…
A few days ago, I updated my SC version to 8.1. And as suggested, I made manual backup to my scriptcase folder in .zip format.
While, I was working, the error occurs :
“Fatal error: This file has expired. in /opt/NetMake/v8/wwwroot/scriptcase/devel/lang/en-us/App.lang.php on line 0”
Then, I logout and tried to login again. But, I can’t login. The error occur, ie:
“Fatal error: This file has expired. in /opt/NetMake/v8/wwwroot/scriptcase/devel/lib/php/error.inc.php on line 0”

So, I decided to get back to the previous version (ver.8).
Now, I have already rollback my scriptcase installation to the previous version. But, the error is still occurs, like this :
“Fatal error: This file has expired. in /opt/NetMake/v8/wwwroot/scriptcase/devel/lib/php/error.inc.php on line 0”

So, what is the problem? Please help me, because I can not working with my scriptcase now.
Thank You.

tx u…very helpful

[QUOTE=Cavadinha;38716]Nice Giu.
This post will remain sticked for newer users knows how to upgrade and succesfully roll-back in case of problems.[/QUOTE]

Yeah you right Cavadinha that info is correct for every new user

Hi Team,

I wish I had this info before upgrading although most of the direct updates have worked with no problems. In fact I once backed-up my project and restored and was shocked that I lost all my layout formatting. I had to repeat all my forms.

However, following upgrade to version [SIZE=12px]8.1.039 I experienced many problems with dates upon generating source code. The following is an abstract;[/SIZE]

Parse error: syntax error, unexpected ‘;’ in C:\Program Files (x86)\NetMake\v81\wwwroot\scriptcase\app\AutoGUsers\form_valuations\form_valuations_apl.php on line 6335

$comando_multiul = "SELECT COUNT(*) FROM valuations_photos WHERE p_val_id = " . $this->id . “”;
$_SESSION[‘scriptcase’][‘sc_sql_ult_comando’] = $comando_multiul;
$this->trans_date = $old_value_trans_date;
$this->expirydate = $old_value_expirydate;
$this->valuation_fee = $old_value_valuation_fee;
$this->datereg = $old_value_datereg;
$this->id = $old_value_id;
$this->marketvalue = $old_value_marketvalue;
$this->windscreenvalue = $old_value_windscreenvalue;
$this->radiovalue = $old_value_radiovalue;
$this->tyres_nearfront = $old_value_tyres_nearfront;
$this->tyres_offfront = $old_value_tyres_offfront;
$this->tyres_nearrear = $old_value_tyres_nearrear;
$this->tyres_offrear = $old_value_tyres_offrear;
$this->insert_date = $old_value_insert_date;
$this->insert_date_hora = $old_value_insert_date_hora = ; <=NOTICE THIS, this is line 6335
$this->edit_date = $old_value_edit_date;
$this->edit_date_hora = $old_value_edit_date_hora = ; <=NOTICE THIS
$rs_mu = $this->Db->Execute($comando_multiul);

Kindly what is the work-around for this? Its happening to most of my transactions forms and remember that I have not made any changes to the forms. I cannot deploy to production :frowning:

Thnx & KRgrds

Moh.

Please, create a new thread for your doubt. There are a thread reporting this. Seems like is related to multiupload fields.

No, you can use php 5.4 although I don’t recommend that. But you cannot use php 7 (yet).

Thanks Gui, will do… Just thought it is related to upgrading …

Rgrds

So let me get this straight:
i am now running [SIZE=12px]8.1.041 version.

i generally follow inidications and go in help menu–>update version and so on.

should i trust this procedure when i see the message frog sc when i log in telling me that there is an update?
what you suggested applies for every update or just major ones?

thanks[/SIZE]

I only have one recommendation. Since you cannot go easily back to the old version I recommend to create a full binary backup of your sc folder. If something goes wrong you can always revert back. Unfortunately we have had samples of updates that did not went well. Of course SC fixes it asap, but it’s a burdon never-the-less. We always do this on any update, tiny or big.

Ok. From now on I will make a full backup of my projects using the built in function and I will also make a copy of wwwroot/scriptcase folder.
In case of problems, is it enough to put the old scriptcase folder at its place overwritting the new one?
Thank you

No, to be sure you need to make a full binary backup of your scriptcase folder under netmake.

​I think additionally, until the new version is confirmed stable/ satisfactorily tested, its better to develop new apps/ make changes on the old SC version and imported into the new. If you have to revert to the old SC version, anything developed on the new version will be lost (have to be re-programmed on old version.) Or has you not had this problem?