Please note that the forum isn't realy used anymore.

If you have questions, want support or just simply want to talk to us you can find us on slack.

 

Memory allocation?

I have a strange error when installing fork-cms on a brand new machine. OS is debian 7 64bit, PHP 5.4.36, Apache 2.2.22. Nothing special. Only addition from a clean box, is Webmin with modules for Apache. Fork CMS is version 3.8.5

[Tue Feb 03 12:09:56 2015] [error] [client 217...179] PHP Fatal error: Allowed memory size of 134 217 728 bytes exhausted (tried to allocate 53 602 475 bytes) in /var/www/vendor/spoon/library/spoon/exception/exception.php on line 441

the default in php.ini is 128M, what causes this allocation of less than half that memory to occur?

I added a ugly one (the server isn't live), I just threw in

iniset('memorylimit', '256M'); into index.php as first line after <?php

and the only thing that changed was

PHP Fatal error: Allowed memory size of 268 435 456 bytes exhausted (tried to allocate 60 463 153 bytes)

Same line, same same place.

I even tried -1 (don't EVER do this unless you don't want something to go very seriously wrong) and I got a nice white page;

"Internal error."

At least it didn't complain (the server has 3 digits of GB mem).

Clues?

This happens when redirecting from index.php to install. So I haven't even been able to start the install guide.

Can it be the .htaccess file? Debian is quite quirky on the .htaccess. But since I've got root i fixed those caveats.

/X

This seeeeeem to be a issue with Debian. This is for Debian ONLY but the same quirk can be present for Ubuntu.

Turned on some debug.

  • RuntimeException: Unable to write in the cache directory (/var/www/app/cache/install)
  1. cd /var
  2. chown www-data:www-data www -R

Next error:

filegetcontents(/home/forkcms2/apps/default/shared/files/github_downloads/tmp/811974f5f392a1be936fcae11c4ff6ce/forkcms-forkcms-f561e7a/src/ForkCMS/Bundle/InstallerBundle/Resources/views/Installer/step2.html.twig): failed to open stream: No such file or directory in /var/www/vendor/twig/twig/lib/Twig/Loader/Filesystem.php line 130

Well, let's add a user called forkcms2 then!

  1. adduser forkcms2
  2. Give a weird, long password as password

results in

ContextErrorException: Warning: filegetcontents(/home/forkcms2/apps/default/shared/files/githubdownloads/tmp/811974f5f392a1be936fcae11c4ff6ce/forkcms-forkcms-f561e7a/src/ForkCMS/Bundle/InstallerBundle/Resources/views/Installer/step2.html.twig): failed to open stream: No such file or directory in /var/www/vendor/twig/twig/lib/Twig/Loader/Filesystem.php line 130 in /var/www/vendor/twig/twig/lib/Twig/Loader/Filesystem.php line 130 at ErrorHandler->handle('2', 'filegetcontents(/home/forkcms2/apps/default/shared/files/githubdownloads/tmp/811974f5f392a1be936fcae11c4ff6ce/forkcms-forkcms-f561e7a/src/ForkCMS/Bundle/InstallerBundle/Resources/views/Installer/step2.html.twig): failed to open stream: No such file or directory', '/var/www/vendor/twig/twig/lib/Twig/Loader/Filesystem.php', '130', array('name' => 'ForkCMSInstallerBundle:Installer:step2.html.twig')) at filegetcontents('/home/forkcms2/apps/default/shared/files/githubdownloads/tmp/811974f5f392a1be936fcae11c4ff6ce/forkcms-forkcms-f561e7a/src/ForkCMS/Bundle/InstallerBundle/Resources/views/Installer/step2.html.twig') in /var/www/vendor/twig/twig/lib/Twig/Loader/Filesystem.php line 130 at TwigLoaderFilesystem->getSource('ForkCMSInstallerBundle:Installer:step2.html.twig') in /var/www/vendor/twig/twig/lib/Twig/Environment.php line 334 at TwigEnvironment->loadTemplate('ForkCMSInstallerBundle:Installer:step2.html.twig') in /var/www/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 131 at TwigEngine->load('ForkCMSInstallerBundle:Installer:step2.html.twig') in /var/www/vendor/symfony/symfony/src/Symfony/Bridge/Twig/TwigEngine.php line 53 at TwigEngine->render('ForkCMSInstallerBundle:Installer:step2.html.twig', array('form' => object(FormView))) in /var/www/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 83 at TwigEngine->render('ForkCMSInstallerBundle:Installer:step2.html.twig', array('form' => object(FormView))) in /var/www/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/Debug/TimedTwigEngine.php line 50 at TimedTwigEngine->render('ForkCMSInstallerBundle:Installer:step2.html.twig', array('form' => object(FormView))) in /var/www/vendor/symfony/symfony/src/Symfony/Bundle/TwigBundle/TwigEngine.php line 112 at TwigEngine->renderResponse('ForkCMSInstallerBundle:Installer:step2.html.twig', array('form' => object(FormView)), null) in /var/www/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php line 106 at Controller->render('ForkCMSInstallerBundle:Installer:step2.html.twig', array('form' => object(FormView))) in /var/www/src/ForkCMS/Bundle/InstallerBundle/Controller/InstallerController.php line 61 at InstallerController->step2Action(object(Request)) at calluserfunc_array(array(object(InstallerController), 'step2Action'), array(object(Request))) in /var/www/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 117 at HttpKernel->handleRaw(object(Request), '1') in /var/www/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/HttpKernel.php line 61 at HttpKernel->handle(object(Request), '1', true) in /var/www/vendor/symfony/symfony/src/Symfony/Component/HttpKernel/DependencyInjection/ContainerAwareHttpKernel.php line 62 at ContainerAwareHttpKernel->handle(object(Request), '1', true) in /var/www/app/Kernel.php line 39 at Kernel->handle(object(Request)) in /var/www/index.php line 63

enough said :-D

Flushed the machine, thrown in a fresh bare debian 7, threw in webmin, will try using git for install :-D

Trial and error.

/X

Didn't flush the machine.

apt-get install git

first.

/X

I think it's easier if i write down a generic guide for both Debian and CentOS.

/X

Hello ! I have the same problem and since i'm a bit "noobish" (i've only installed wordpress before) i'd really like a walkthrough on how to resolve this problem.

Ty !

It isn't exactly a walk in the park on this. Most of the developers have MacOS/X, Which, in essential is just a *BSD with a GUI. (No offence :-D)

The people that created the guide to install on Linux, didn't take some things in consideration. The various mileage of users doing it, most people not developing stuff don't have knowledge of Git or various other stuff.

I tried to install on a vanilla Debian 7 machine. With exact specs. Nothing worked. This also applies to Ubuntu and similar branches based on Debian.

I'm yet to install on a vanilla Centos7 machine. More "similar" to RedHat Enterprise Linux / Novell SuSE Enterprise Server / Oracle Linux. Also Fedora Linux goes in here.

Fortunately, I have a VPS which I can reinstall with a live IP. But this is a OpenVZ virtual machine, not a KVM machine, so I'm tied to a specific kernel. (Doesn't matter that much).

This is not the only headache. I have to work too :-D So I have to do this spare time. Thank GOD it's friday! :-D

I'm probably going to make a angry stirr about this, since I want the fork-cms run in a "nobody" userspace. Whereas, atleast according to the errors I've gotten, isn't what Mac users tend to do.

I've been busy, but I'll keep this thread open. I like the approach of Fork.

Yours, /X

As a comment; Getting these errors doesn't bid well with the coding.

/home/forkcms2/apps/default/shared/files/github_downloads/tmp/

So, why is /home/forkcms2/apps/default/shared/......

even referenced in a vanilla install?

/X

Comment

The forum is deprecated in favor of our Slack channel, which provides real-time support for your issues.

Join us on Slack here: https://fork-cms.herokuapp.com/