Justine

Send private message

You must be logged in to send a private message.

Friends

No friends yet.

Group membership

Activity

  • Amazing, that works! display_errors was On, I switched it off and now the url of my subdomain leads me to an installed Elgg :) Thank you very much :) view reply
  • I don't understand this part. Have you created a .htaccess file on your own or have you used the template htaccess.dist from the install/config subfolder to create the .htaccess file in the install folder? Sorry, my explanation was... view reply
  • Hi, so update after the webhoster support answer: mbstring is actually already installed (libmbfl version 1.3.2.) view reply
  • Thank you for the replies :) The thing is, as I said, I am not a developer and I'm using a Siteground server. So the mbstring installation page is basically Chinese for me x) When I look in cpanel, I only have a "PHP Variables... view reply
  • Hi, I really want to install Elgg and I've been trying to do so for days but no matter what I try, I always get those 2 errors: Deprecated: ini_set(): Use of mbstring.internal_encoding is deprecated in /home/[path to subdomain...
    • I don't understand this part. Have you created a .htaccess file on your own or have you used the template htaccess.dist from the install/config subfolder to create the .htaccess file in the install folder?

      Sorry, my explanation was confusing. I tried different installations along instruction I found online. I tried creating the htaccess myself, taking the one from htaccess.dist, or letting softaculous do its job. In all cases, RewriteEngine has been on.

      Currently, it's the softaculous install and the htaccess is in the subdomain folder and is the one from the template. So yes, it does contain other instructions.

      You should find an entry in the error log that contains the exception number and this error log entry might give more info about why the fatal error occurs.

      I put an example of what I find in the log, above. Tell me if it's the right log file, I can copy/paste it integrally if that helps but it's a bit long.

      Basically php_errorlog found in the subdomain folder starts with:

      text/x-generic php_errorlog
      ASCII English text, with very long lines
      
      [27-Jun-2016 16:56:07 America/New_York] PHP Deprecated:  ini_set(): Use of mbstring.internal_encoding is deprecated in /home/[path to subdomain folder]/vendor/elgg/elgg/engine/lib/mb_wrapper.php on line 239
      [27-Jun-2016 16:56:07 America/New_York] Exception #1467060967: exception 'RuntimeException' with message 'Failed to start the session because headers have already been sent by "/home/[path to subdomain folder]/vendor/elgg/elgg/engine/lib/mb_wrapper.php" at line 239.' in /home/[path to subdomain folder]/vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php:140
      
      
      And then several variations of that:
      Stack trace:
      #0 /home/[path to subdomain folder]/vendor/symfony/http-foundation/Session/Session.php(71): Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start()
      #1 /home/[path to subdomain folder]/vendor/elgg/elgg/engine/classes/ElggSession.php(57): Symfony\Component\HttpFoundation\Session\Session->start()
      #2 /home/[path to subdomain folder]/vendor/elgg/elgg/engine/lib/sessions.php(416): ElggSession->start()
      #3 /home/[path to subdomain folder]/vendor/elgg/elgg/engine/classes/Elgg/BootService.php(143): _elgg_session_boot()
      #4 /home/[path to subdomain folder]/vendor/elgg/elgg/engine/lib/elgglib.php(2043): Elgg\BootService->boot()
      #5 [internal function]: Elgg\Application->{closure}('boot', 'system', NULL)
      #6 /home/[path to subdomain folder]/vendor/elgg/elgg/engine/classes/Elgg/EventsService.php(92): call_user_func_array(Object(Closure), Array)
      #7 /home/[path to subdomain folder]/vendor/elgg/elgg/engine/classes/Elgg/Application.php(257): Elgg\EventsService->trigger('boot', 'system')
      #8 /home/[path to subdomain folder]/vendor/elgg/elgg/engine/classes/Elgg/Application.php(423): Elgg\Application->bootCore()
      #9 /home/[path to subdomain folder]/vendor/elgg/elgg/engine/classes/Elgg/Application.php(371): Elgg\Application->run()
      #10 /home/[path to subdomain folder]/index.php(8): Elgg\Application::index()
      #11 {main}
      [02-Jul-2016 11:14:08 America/New_York] PHP WARNING: 2016-07-02 11:14:08 (EDT): "Cannot modify header information - headers already sent by (output started at /home/[path to subdomain folder]/vendor/elgg/elgg/engine/lib/mb_wrapper.php:239)" in file /home/[path to subdomain folder]/vendor/elgg/elgg/engine/lib/elgglib.php (line 871)
      [02-Jul-2016 11:14:08 America/New_York] PHP WARNING: 2016-07-02 11:14:08 (EDT): "Cannot modify header information - headers already sent by (output started at /home/[path to subdomain folder]/vendor/elgg/elgg/engine/lib/mb_wrapper.php:239)" in file /home/[path to subdomain folder]/vendor/elgg/elgg/engine/lib/elgglib.php (line 872)
      [02-Jul-2016 11:14:08 America/New_York] Exception #1467472448 : fatal error in exception handler : Failed to start the session because headers have already been sent by "/home/[path to subdomain folder]/vendor/elgg/elgg/engine/lib/mb_wrapper.php" at line 239.

      What I wonder about is that you get the deprecation warning "ini_set(): Use of mbstring.internal_encoding is deprecated" because you say that php 5.6.22 is installed on the server whereas the code of Elgg does only use it if the php version is < 5.6.0.

      That puzzles me too, and I get the error even when setting php on version 7 in the cpanel for this subdomain. In any case, the main domain is in 5.6.22 too.

      Are you really trying to install Elgg in a subdomain, i.e. accessing it then with url subdomain.maindomain.url or are you just installing it into a subdirectory (access with url maindomain.url/subdomain)?

      I'm afraid not to get the difference here. When I use softaculous, I select the subdomain I created to install it in.

      When I tried manually, I would unzip all the elgg files in the subdomain folder and create the elgg data folder at root. Then I would access the install.php with the url subdomain.domain.com/elgg/install.php

      Maybe I'm doing something wrong here?

      As for other .htaccess, there is one in root and one in public_html. I have Wordpress installed for my main domain and that was an autoinstall from my hosting provider.

      Thank you for you patience!!! :)

    • fatal error in exception handler : Failed to start the session because headers have already been sent

      Errors being output is the problem. Subdomains, .htaccess, are not the problem. Use phpinfo() to see if ini.display_errors is On. It needs to be Off

       

    • Amazing, that works!

      display_errors was On, I switched it off and now the url of my subdomain leads me to an installed Elgg :)

      Thank you very much :)

  • Justine joined the group Elgg Technical Support