Skip to main content


Upgrade error


!Friendica Support

I tried upgrading my Friendica from 2020.03 to 2021.01

I erase all files.

I then uploaded the new version.

I then used the following file from the old version: config and addon config as well as the .htaccess files.

Once i did this and looked at the website again, I got the following errors:

PHP Warning: require_once(/var/www/clients/client1/web12/web/vendor/composer/autoload_real.php): failed to open stream: No such file or directory in /var/www/clients/client1/web12/web/vendor/autoload.php on line 5
PHP Fatal error: require_once(): Failed opening required '/var/www/clients/client1/web12/web/vendor/composer/autoload_real.php' (include_path='.:/usr/share/php') in /var/www/clients/client1/web12/web/vendor/autoload.php on line 5

Any clues as to what this error is from?

I installed my back up for now so that I could write this message.

Thanks

Joseph
@Tobias

This is where I got my files:
https://friendi.ca/2021/01/04/friendica-2021-01-released/

The links on the blog post concerning the release of the upgrade.
https://files.friendi.ca/friendica-full-2021.01.tar.gz
https://files.friendi.ca/friendica-addons-2021.01.tar.gz

They do nto seem to be from github.

@Steffen K9 ๐Ÿฐ
Thanks. The vendor folder is full of stuff. Are they all the files/folders for the dependecies, I am not sure. I donot know what shold be in there.

!Friendica Support
HI Tobias

I looked at the newer version that I used, and this file is there.

I also noticed something in my files when I was going to try and up[grade again today:
The name of my addon config file is:
addon-sample.config

Will this cause issues It seems to have been this way since i first in stalled friendica.

Does this mean that my addons have no config file?

As well, I just noticed that the new version is out.

Maybe I can skip 2021.01 and use 2021.04 right away.

Any issues with this?

I am using 2020.03 right now.

Thanks

Joseph

@Tobias
@Michael Vogel
@Steffen K9 ๐Ÿฐ

#2021.04
#upgrade
!Friendica Support
Thanks Michael,

Good to know that i can skip to 2021.04.

But, as for the GIT, this is a new world for me. I know of it(everyone seems to be using it), but have no idea how to do it.

According to the instructions, seems easy:
cd friendica
git fetch
git checkout stable
git pull
bin/composer.phar install --no-dev
cd addon
git fetch
git checkout stable
git pul

But, I do not know how to do it๐Ÿ™

Is GIT something I need to install on my server? Other things to consider?

Thanks

Joseph
This entry was edited (3 years ago)
Turns out, git is already install o my server! Step one, accomplished!

Now, what to do with it. This will be the next step.

What about these repositories that @Michael Vogel mentioned?

Thanks


!Friendica Support
OK, as I mentioned in my reply to @Michael Vogel , git is already installed(was unaware, since I never used it before).

You say to use the following command:
git clone -b stable https://git.friendi.ca/friendica/friendica /path/to/friendica

You menitoned to create a new friendica folder into which put the got clone. My friendica is installed in the man directly of my domain folder:
social.mmaj.ca

I do not want to clone the directly in the same folder as my regular friendica directory, do I ? Or, do I?
Is this process doing something similar to using the archive, where you replace everthing, except a few main config files and .htaccess?


You mention at the end that my HD space use will increase since to keeps the projects history. Do we need to keep this history? How to erase/remove it?

I will have more questions, but this will start the ball rolling.

Thanks
Tobias,

I am asking these questions as a total newbie, who does nto understand how GIT works or the best practices.

I just want to understand it enough so that I can safely upgrade my friendica server and not screw everything up.

So, you are saying that I can use GIT and just update everything directly to the ,main directory? I'll make a back up, so that I can restore things if needed.
Tobias,

I am not a programmer.

I am an end user who just wants to run Friendica.

I am not looking to erase history, just have a streamlined less bulky code.

If all these extra comments automatically come with the code, than I will need to add them to my site.

I thought that the comments and history would be for the programmers, and not be needed/included in the released version.

Thanks
โ‡ง