latest release phpbb 3.1 / twig.php problem

General discussion of development ideas and the approaches taken in the 3.x branch of phpBB. The current feature release of phpBB 3 is 3.3/Proteus.
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.

If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
User avatar
abpphpbb3
Registered User
Posts: 11
Joined: Mon Feb 21, 2011 7:12 am
Location: france

latest release phpbb 3.1 / twig.php problem

Post by abpphpbb3 »

Hello,

I tried to install latest release for phpbb 3.1 (rc1 - 5720) same as the previous releases.

I get this error:
Fatal error: Class 'Twig_Loader_Filesystem' not found in /home/web/mysite.com/ftp/www/mydatabase/includes/template/twig/twig.php on line 125
does anybody have an idea?

many thanks by advance and good suny week-end or holidays

bernard
Last edited by abpphpbb3 on Sun Jul 14, 2013 10:34 am, edited 1 time in total.

User avatar
MattF
Extension Customisations
Extension Customisations
Posts: 675
Joined: Mon Mar 08, 2010 9:18 am

Re: latest release phpbb 3.1 / twig.php problem

Post by MattF »

You will need to install and/or update the composer dependencies

Code: Select all

cd phpBB
php ../composer.phar install
Has an irascible disposition.

User avatar
abpphpbb3
Registered User
Posts: 11
Joined: Mon Feb 21, 2011 7:12 am
Location: france

Re: latest release phpbb 3.1 / twig.php problem

Post by abpphpbb3 »

thanks for the quick reply,

in fact it is located in the vendor folder ??? If I am true could you post a zip of the latest vendor folder for this release?

regards
bernard

User avatar
DavidIQ
Customisations Team Leader
Customisations Team Leader
Posts: 1904
Joined: Thu Mar 02, 2006 4:29 pm
Location: Earth
Contact:

Re: latest release phpbb 3.1 / twig.php problem

Post by DavidIQ »

The command VSE+ gave you will get that for you. Works on Windows and Linux.
Image

User avatar
Meis2M
Registered User
Posts: 448
Joined: Fri Apr 23, 2010 10:18 am
Contact:

Re: latest release phpbb 3.1 / twig.php problem

Post by Meis2M »

can u attach new vendor folder for me here?

User avatar
nickvergessen
Former Team Member
Posts: 733
Joined: Sun Oct 07, 2007 11:54 am
Location: Stuttgart, Germany
Contact:

Re: latest release phpbb 3.1 / twig.php problem

Post by nickvergessen »

Just download this package and copy it form there https://bamboo.phpbb.com/browse/PHPBB3- ... ease-Files
Member of the Development-TeamNo Support via PM

User avatar
abpphpbb3
Registered User
Posts: 11
Joined: Mon Feb 21, 2011 7:12 am
Location: france

Re: latest release phpbb 3.1 / twig.php problem

Post by abpphpbb3 »

hello,
thks nickvergessen I founded this package with the vendor folder and it run well the install for phpbb 3.1 dev

regards

User avatar
bantu
3.0 Release Manager
3.0 Release Manager
Posts: 557
Joined: Thu Sep 07, 2006 11:22 am
Location: Karlsruhe, Germany
Contact:

Re: latest release phpbb 3.1 / twig.php problem

Post by bantu »

I tried to install latest release for phpbb 3.1 (rc1 - 5720) same as the previous releases.
I don't know where you got these numbers from. I don't know what 5720 stands for and there has been no phpBB 3.1.0-RC1 release so far. The packages nickvergessen linked to are the most up-to-date packages we have for phpBB 3.1. If you downloaded phpBB from GIthub using Git, you should have read the README that explains how to install dependencies.

NeilUK
Registered User
Posts: 88
Joined: Mon May 01, 2006 7:55 pm
Contact:

Re: latest release phpbb 3.1 / twig.php problem

Post by NeilUK »

I transferred my existing 3.0.12 Forum to my test site to test the upgrade system which all worked really smoothly (once I figured out error I had made) it was fine. I have just gone to the Forum again to test an install of the flashchat software I have been using on my Forum but I get this error now in my error log

"PHP Fatal error: Uncaught exception 'Twig_Error_Loader' with message 'Unable to find template "bbcode.html" (looked into: ).' in /var/www/vhosts/mydomai.com/httpdocs/phpBB3/vendor/twig/twig/lib/Twig/Loader/Filesystem.php:202\nStack trace:\n#0 /var/www/vhosts/mydomain.com/httpdocs/phpBB3/phpbb/template/twig/loader.php(103): Twig_Loader_Filesystem->findTemplate('bbcode.html')\n#1 /var/www/vhosts/mydomain.com/httpdocs/phpBB3/vendor/twig/twig/lib/Twig/Loader/Filesystem.php(138): phpbb\\template\\twig\\loader->findTemplate('bbcode.html')\n#2 /var/www/vhosts/mydomain.com/httpdocs/phpBB3/phpbb/template/twig/twig.php(333): Twig_Loader_Filesystem->getCacheKey('bbcode.html')\n#3 /var/www/vhosts/mydomain.com/httpdocs/phpBB3/includes/bbcode.php(138): phpbb\\template\\twig\\twig->get_source_file_for_handle('bbcode.html')\n#4 /var/www/vhosts/mydomain.com/httpdocs/phpBB3/includes/bbcode.php(42): bbcode->bbcode_cache_init()\n#5 /var/www/vhosts/mydomain.com/httpdocs/phpBB3/includes/functions_content in /var/www/vhosts/mydomain.com/httpdocs/phpBB3/vendor/twig/twig/lib/Twig/Loader/Filesystem.php on line 202"

I am also getting a permission denied message from SmartFTP when I try and delete the twig folder in "cache" permissions are set to 777 for my cache folder, everything else clears just not my twig folder. Not sure if this is a bug or not, I'll log it if you say it's a bug
"Life Is What Happens To You When You Are Busy Making Other Plans" - John Lennon

User avatar
nickvergessen
Former Team Member
Posts: 733
Joined: Sun Oct 07, 2007 11:54 am
Location: Stuttgart, Germany
Contact:

Re: latest release phpbb 3.1 / twig.php problem

Post by nickvergessen »

Which style are you using?
Member of the Development-TeamNo Support via PM

Post Reply