Additional installation steps

Known issues

  • The requirements are not being checked prior to installing. We are working to implement this in the next alpha version.
  • Installation breaks when selecting another language than English
  • We are using a deprecated module for Composer (composer_manager) and will remove this in the next version.

Initial issue

I tried multiple times to install using the regular UI but been unsuccessful so far...every time I get this error:

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /core/install.php?rewrite=ok&profile=social&langcode=en&continue=1&id=2&op=do_nojs&op=do
StatusText: Internal Server Error
ResponseText:

Members fund testing for the Drupal project. Drupal Association Learn more

Comments

currando created an issue. See original summary.

currando’s picture

Title: problem » Installation Problem
currando’s picture

Component: Code » User interface
Issue summary: View changes
Erdem Alkan’s picture

i have a same problem.

Install social features tab

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /core/install.php?profile=social&langcode=en&id=2&op=do_nojs&op=do
StatusText: Internal Server Error
ResponseText:
Error
body {
width: 35em;
margin: 0 auto;
font-family: Tahoma, Verdana, Arial, sans-serif;
}
An error occurred.
Sorry, the page you are looking for is currently unavailable.
Please try again later.
If you are the system administrator of this resource then you should check
the error log for details.
Faithfully yours, nginx.

nielsvandermolen’s picture

Before installing in the UI a manually step is needed to download composer dependencies (for the address module). Please see step 2 in the install readme:
https://github.com/goalgorilla/drupal_social#installation

An alternative is to use the Docker installation, this method is better tested internally since we just implemented the UI installation during the Drupal Dev Days.

Another Idea would be to try an installation with drush, for an example you can take a look at this install script:
https://github.com/goalgorilla/drupal_social/blob/master/dev-scripts/ins...

kaizerking’s picture

I have the same problem,How do i install this on Ampps Windows 10 machine?

currando’s picture

When I run the commands:

php profiles/social/modules/contrib/composer_manager/scripts/init.php
composer drupal-rebuild
composer update -n --lock --verbose

I get following error:

Warning: json_encode() expects parameter 2 to be long, string given in /is/htdocs/www/opensocial/profiles/social/modules/contrib/composer_manager/src/JsonFile.php on line 68
Composer Manager has been successfully initialized.
wp12292711@ssh02:~/www/opensocial$ composer drupal-rebuild
-bash: composer: command not found
carstenhager’s picture

I have the same error.

Install social features

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /core/install.php?rewrite=ok&profile=social&langcode=de&id=3&op=do_nojs&op=do
StatusText: OK
ResponseText: InvalidArgumentException: The configuration property display.default.display_options.filters.field_event_date_value.group_info.group_items.1.value.type doesn't exist. in Drupal\Core\Config\Schema\ArrayElement->get() (line 74 of /Users/carsten/Sites/devdesktop/social/core/lib/Drupal/Core/Config/Schema/ArrayElement.php).

currando’s picture

Any help...?

ronaldtebrake’s picture

Hi all,

Some idea's to hopefully get this fixed:

1. Could it be that composer was not installed globally (or at all)?

Like mentioned in #5 there are composer dependencies for one of the modules libraries in the distribution. It needs to run before the installation through the UI can actually complete the last step.

composer --version should give you the installed version of composer.

2. Which version of the distribution are you running?

Saturday we updated to alpha 5, are you using the updated code from the DEV branch or from alpha 5 by any chance? It could be that the newer version already fixes some issues for you.

3. What php version are you running?

http://stackoverflow.com/questions/22208831/json-encode-expects-paramete...
suggests that it could be due to an old version of PHP, for Drupal 8: PHP 5.5.9 or higher is required.

Hope it helps!

jaapjan’s picture

I added some installation instructions on the project page: https://www.drupal.org/project/social

@carstenhager
I'm able to reproduce the error you are receiving when installing the profile in German. Do you also have the issue when installing in English?

samozin’s picture

http://localhost/social/core/install.php?rewrite=ok&profile=social&langc...

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /social/core/install.php?rewrite=ok&profile=social&langcode=en&id=2&op=do_nojs&op=do
StatusText: OK
ResponseText:
Fatal error: Interface 'CommerceGuys\Addressing\Model\AddressFormatInterface' not found in C:\xampp3\htdocs\social\profiles\social\modules\contrib\address\src\Entity\AddressFormatInterface.php on line 21

Fatal error: Call to undefined function node_access_rebuild() in C:\xampp3\htdocs\social\profiles\social\social.profile on line 118

carstenhager’s picture

@jaapjan

install in english works.
thank you

jaapjan’s picture

@samozin

It looks like you did not install the composer dependencies via the terminal before running the installation.

php profiles/social/modules/contrib/composer_manager/scripts/init.php
composer drupal-rebuild
composer update -n --lock --verbose

However I see you are running on Windows. Perhaps this will help you install Composer on Windows first?

https://getcomposer.org/doc/00-intro.md#installation-windows

Cyberschorsch’s picture

Can confirm that installation in languages other than english fails. We should check the config files

kaizerking’s picture

I have given up installing this , it is nightmare! install composer then run command line etc is too much for me ... thnx guys I will look for some other community management CMS

GoalGorilla’s picture

Hi @kaizerking, I am very sorry to hear that..

Composer is the way to go for Drupal 8, but it's not yet supported correctly by Simpletest.me or Drupal packaging (it still needs make files) so especially for our distro it's rather painfull, since it now needs manual steps to complete it. https://www.drupal.org/node/2718229

We are thinking about dropping the Address module for now until composer support fully hits Drupal, this module is the main culprit for our manual steps so removing this will simplify the install a lot. It will also make Simpletest.me workable for now. But there are some cons here too.
For Drupal Core there is now built-in Composer support as well. However they still want to give the possibility to download a read-to-use tarball as per: https://www.drupal.org/node/2648064 All the code in Drupal Core is GPL and they dont depend on external libraries like we do.

I’m curious to see how a commerce kickstart profile (if this is going to be build) is going to handle this. The address module (also commerceguys) basically says “must be” installed using composer.

Taco

bojanz’s picture

@GoalGorilla
The Drupal.org distribution building process needs to be extended to run Composer, same way it runs when packaging Drupal core.
With all of the Composer improvements on drupal.org that is now closer than ever.

For Commerce (Kickstart) I was thinking of making my own build script and hosting builds on drupalcommerce.org if the drupal.org fix doesn't land soon.
However, since distributions on Drupal 8 are useless without Composer (due to an increasing number of modules such as Address, Rules, Search API Solr requiring it), I am hoping that it does land soon.

currando’s picture

I rellay want to install and test this distro, but is really proving to hard... I've been wrestling for 4 days used different PHP versions and even change server three times but no luck so far...right now strugling trying to run composer but I keep getting this error:

Warning: Composer should be invoked via the CLI version of PHP, not the cgi-fcgi SAPI
sh: sudo: not found
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Nothing to install or update
Generating autoload files
> Drupal\Core\Composer\Composer::preAutoloadDump
> Drupal\Core\Composer\Composer::ensureHtaccess
ronaldtebrake’s picture

@Currando,

Have you seen this topic http://stackoverflow.com/questions/29814578/installing-composer-on-a-shared-host ?

Seems to be strongly related to your issues.

GoalGorilla’s picture

Tim Lehnen (hestenet):
This is absolutely on the list to prioritize. We're just about to take the Drupal.org composer repository support from Alpha to Beta, so we're certainly getting there.

Do you follow our change notifications?
You can sign up to receive them by email here: https://groups.google.com/a/association.drupal.org/forum/#%21forum/changes

Or find them posted on Drupal.org here:

Software related change records:
https://www.drupal.org/list-changes/drupalorg
Infrastructure related change records:
https://www.drupal.org/list-changes/infrastructure

Composer related change notifications are usually in the infrastructure section.

currando’s picture

I think at the present time is practically impossible to install this disto in a shared hosting environment. I created a local environment and made sure composer is properly instaled, etc. but still when I run:

php profiles/social/modules/contrib/composer_manager/scripts/init.php

I get this error:

Could not open input file: profiles/social/modules/contrib/composer_manager/scripts/init.php

Any help will be really apreciated...

nielsvandermolen’s picture

Maybe there is a problem related to permissions I think it should be executable and readable.

You can try giving the file all permissions for all users and see if it works. You probably want to change this later when you have the site running.
chmod 777 profiles/social/modules/contrib/composer_manager/scripts/init.php

MrPaulDriver’s picture

The suggestion at #23 did not seem to help. I am using PHP Verion. 5.6.7

My error appears to be similar to those above

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /core/install.php?rewrite=ok&profile=social&langcode=en&id=2&op=do_nojs&op=do
StatusText: Internal Server Error
ResponseText: 
500 Internal Server Error
Internal Server Error
The server encountered an internal error or
misconfiguration and was unable to complete
your request.
Please contact the server administrator,
you@example.com and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.
More information about this error may be available
in the server error log.

The problem seems to be with stage 44 of installation.

I had already updated my version to Composer to the latest.

I am new to Composer, but the verbose output suggests that address may have been successfully installed

Pauls-MacBook-Pro:opensocial pauldriver$ php profiles/social/modules/contrib/composer_manager/scripts/init.php
Composer Manager has been successfully initialized.
Pauls-MacBook-Pro:opensocial pauldriver$ composer drupal-rebuild
> Drupal\composer_manager\Composer\Command::rebuild
The composer.json has been successfuly rebuilt.
Pauls-MacBook-Pro:opensocial pauldriver$ composer update -n --lock --verbose
  [merge-plugin] Loading core/composer.json...
  [merge-plugin] Merging php
  [merge-plugin] Merging symfony/class-loader
  [merge-plugin] Merging symfony/console
  [merge-plugin] Merging symfony/dependency-injection
  [merge-plugin] Merging symfony/event-dispatcher
  [merge-plugin] Merging symfony/http-foundation
  [merge-plugin] Merging symfony/http-kernel
  [merge-plugin] Merging symfony/routing
  [merge-plugin] Merging symfony/serializer
  [merge-plugin] Merging symfony/translation
  [merge-plugin] Merging symfony/validator
  [merge-plugin] Merging symfony/process
  [merge-plugin] Merging symfony/polyfill-iconv
  [merge-plugin] Merging symfony/yaml
  [merge-plugin] Merging twig/twig
  [merge-plugin] Merging doctrine/common
  [merge-plugin] Merging doctrine/annotations
  [merge-plugin] Merging guzzlehttp/guzzle
  [merge-plugin] Merging symfony-cmf/routing
  [merge-plugin] Merging easyrdf/easyrdf
  [merge-plugin] Merging zendframework/zend-feed
  [merge-plugin] Merging stack/builder
  [merge-plugin] Merging egulias/email-validator
  [merge-plugin] Merging masterminds/html5
  [merge-plugin] Merging symfony/psr-http-message-bridge
  [merge-plugin] Merging zendframework/zend-diactoros
  [merge-plugin] Merging composer/semver
  [merge-plugin] Merging paragonie/random_compat
  [merge-plugin] Merging behat/mink
  [merge-plugin] Merging behat/mink-goutte-driver
  [merge-plugin] Merging jcalderonzumba/gastonjs
  [merge-plugin] Merging jcalderonzumba/mink-phantomjs-driver
  [merge-plugin] Merging mikey179/vfsstream
  [merge-plugin] Merging phpunit/phpunit
  [merge-plugin] Merging symfony/css-selector
  [merge-plugin] Loading profiles/social/modules/contrib/address/composer.json...
  [merge-plugin] Merging commerceguys/intl
  [merge-plugin] Merging commerceguys/addressing
  [merge-plugin] Merging commerceguys/zone
  [merge-plugin] Loading profiles/social/modules/development/devel/webprofiler/composer.json...
  [merge-plugin] Merging symfony/stopwatch
  [merge-plugin] Loading profiles/social/modules/contrib/entity/composer.json...
  [merge-plugin] Merging drupal/core
  [merge-plugin] Loading profiles/social/modules/contrib/profile/composer.json...
  [merge-plugin] Deferring duplicate drupal/core
Loading composer repositories with package information
Updating dependencies (including require-dev)
  [merge-plugin] Adding dependency drupal/profile requires drupal/core ([>= 8.1.0.0-dev < 9.0.0.0-dev])
Dependency resolution completed in 3.743 seconds
Analyzed 6841 packages to resolve dependencies
Analyzed 71058 rules to resolve dependencies
Nothing to install or update
  [merge-plugin] Adding dependency drupal/profile requires drupal/core ([>= 8.1.0.0-dev < 9.0.0.0-dev])
Dependency resolution completed in 0.004 seconds
Generating autoload files
> pre-autoload-dump: Drupal\Core\Composer\Composer::preAutoloadDump
> post-autoload-dump: Drupal\Core\Composer\Composer::ensureHtaccess
Pauls-MacBook-Pro:opensocial pauldriver$ chmod 777 profiles/social/modules/contrib/composer_manager/scripts/init.php
Pauls-MacBook-Pro:opensocial pauldriver$ 

Hope this helps.

MrPaulDriver’s picture

Further to #24

After trying again I noticed that if reloaded the page a couple of times following the error, the installation would resume at stage 50 and then seem to complete.

The installation goes like this;

Installtion fails when progress prints 'Completed 43 of 60    72%'

Error seen > Reload page (twice)

Installation resumes and progress prints 'Completed 49 of 60  82%'

Installation completes without further errors

I don't know if the installation has been compromised, but I do seem to have a working copy of Open Social.

Excited :-)

Vendramini’s picture

Error like @samozin, I run composer but give error:

Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for commerceguys/intl dev-master -> satisfiable by commerceguys/intl[dev-master].
    - commerceguys/intl dev-master requires ext-bcmath * -> the requested PHP extension bcmath is missing from your system.
bojanz’s picture

@Vendramini
How is your error like samozin's? The message clearly tells you that your system is lacking the bcmath extension, which the Address module dependency needs.

قَیُّوم’s picture

Hi to all friends
I 'm having trouble installing this distribution
This error came at the end of the installation to help someone tone
ThankfulInstalling Social features
*******************************************قَیُّوم
Error text as follows
>>>>>
The installation has encountered an error.
Please continue to the error page

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /core/install.php?profile=social&langcode=en&continue=1&id=2&op=do_nojs&op=do
StatusText: OK
ResponseText:
Fatal error: Interface 'CommerceGuys\Addressing\Model\AddressFormatInterface' not found in /home/qayumir/public_html/profiles/social/modules/contrib/address/src/Entity/AddressFormatInterface.php on line 21

nielsvandermolen’s picture

Issue summary: View changes
nielsvandermolen’s picture

Issue summary: View changes
nielsvandermolen’s picture

Updated the status with all problems that are on the radar It is a top priority issue that we are working on in this development sprint which will be finished in 3 weeks. After the sprint we will release a new alpha version that solves most common installation problems.

We keep using Composer and require this manual installation step (outside the interface) until Drupal.org will support Composer installations in distributions. The solution we implement now mainly consists of checking the requirements in the requirements step and includes:

  • BCMath PHP extension
  • Address module dependencies

Furthermore, we try to fix the issue of installing in a different language and replace the compose_manager module.

Vendramini’s picture

Yes, @bojanz. I just install "sudo dnf install php-bcmath" and works fine.

Shaun Holt’s picture

Component: User interface » Code (back-end)

Hey All,
Spent yesterday working with Social and here are a few things I noticed....

1) The language install issue others have experienced... I get the same error, but have noticed, a little later on when the updates says, you have language updates available.... I can click to update language and it completes successfully. Will do more testing today.

2) If installing Open Social to a subfolder instead of root directory, certain links will take you to a page with an error that the page doesn't exist.... for example... this user doesn't have a profile yet, click here to create one... and the profile page cant be found, because the link is trying to pull the profile page up from a folder as if Open social was installed in the root of the web directory. Just a matter of changing the links though after seeing the problem.

Thats what I got for now until the coffee kicks in.

Shaun Holt’s picture

I am using newest distro of Kali Linux and ProFTPD.

Everything is up to date. Have even upgraded Drupal core to 8.1.6.

chmod 777 profiles/social/modules/contrib/composer_manager/scripts/init.php
apt install php5-fpm
apt install libapache2-mod-php5

After running above commands, attempted install of French language...

At 46% configuration install got this error:

Error importing translation files
Please continue to the error page

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /social82/batch?id=24&op=do_nojs&op=do
StatusText: Internal Server Error
ResponseText: {}

Click on on the link for error page shows this:

The language French has been created and can now be used.
Use one of the language switcher blocks to allow site visitors to switch between languages. You can enable these blocks on the block administration page.
13 translation files imported. 8426 translations were added, 1149 translations were updated and 0 translations were removed.

No errors are shown.

The translation from English to French is working though. The few languages I have installed all seem to translate properly.

Will try a few things and install other languages then respond back by editing this post if I noticed anything.

Shaun Holt’s picture

Ok, so here is the error from Drupal log....

Type php
Date Friday, July 15, 2016 - 11:00
User Shaun Holt
Location http://localhost/social82/batch?_format=json&id=27&op=do&op=do_nojs
Referrer http://localhost/social82/batch?id=27&op=start
Message InvalidArgumentException: $string ("Array") must be a string. in Drupal\Core\StringTranslation\TranslatableMarkup->__construct() (line 140 of /opt/lampp/htdocs/social82/core/lib/Drupal/Core/StringTranslation/TranslatableMarkup.php).
Severity Error
Hostname ::1
Operations

Shaun Holt’s picture

This one has me baffled... I have looked around on other pages here and nothing seems to do the trick for me... I kind of feel like if I can get this corrected it will help.

The following module is missing from the file system: socialbase [warning]
bootstrap.inc:233
Unknown path for socialbase module. [warning]

Will do another fresh install and do a few things differently.

Shaun Holt’s picture

Alright, this time did things a little different and i'm taking notes on each step I take, will break those down later... but for now.... I cloned the github master copy this time..... i updated bootstrap them and admin toolbar through the website UI successfully. I enable the Language module successfully. Installed several languages, successfully. No errors with anything so far. I will spend the next few hours enabling modules one by one and checking for errors. I will post later how it goes.

My Drush is not wanting to cooperate, it quit working when I installed this version of Social. so I guess I will see how much can be done without it.

Shaun Holt’s picture

I am excited to say that all modules enabled without errors or warnings. There are 2 groups I did not enable.. the experimental and the web services. I didn't see a need just yet for those. But will try them later. And the status report is showing good for everything. All this through the UI and not having to drop to the command line for anything.

I will post my exact steps from beginning to this point in a few a hours.

So far the only thing that I see that needs correcting are some links... like the link to the create profile page and the tab link for Explore. Probably some more but those are the two i'm aware of.

Shaun Holt’s picture

ok, so, there are some problems..... a number of links goto a white page with this "The website encountered an unexpected error. Please try again later."

I have cleared the cache. No change... and there are some errors in the log....

07/15/2016 - 23:11 Drupal\Core\Theme\MissingThemeDependencyException: Base… Shaun Holt
page not found 07/15/2016 - 23:11 /drupal_social/public_html/admin/group/add Shaun Holt
php 07/15/2016 - 23:11 Drupal\Core\Theme\MissingThemeDependencyException: Base… Shaun Holt
php 07/15/2016 - 23:11 Drupal\Core\Theme\MissingThemeDependencyException: Base… Shaun Holt
php 07/15/2016 - 23:10 Drupal\Core\Theme\MissingThemeDependencyException: Base… Shaun Holt
page not found 07/15/2016 - 23:10 /drupal_social/public_html/profiler/5b89c6 Shaun Holt
php 07/15/2016 - 23:08 Drupal\Core\Theme\MissingThemeDependencyException: Base… Shaun Holt
php 07/15/2016 - 23:07 Drupal\Core\Theme\MissingThemeDependencyException: Base… Shaun Holt
php 07/15/2016 - 23:06 Drupal\Core\Theme\MissingThemeDependencyException: Base… Shaun Holt
php 07/15/2016 - 23:05 Drupal\Core\Theme\MissingThemeDependencyException: Base… Shaun Holt
php 07/15/2016 - 23:04 Drupal\Core\Theme\MissingThemeDependencyException: Base… Shaun Holt
php 07/15/2016 - 22:57 Drupal\Core\Theme\MissingThemeDependencyException: Base… Shaun Holt

Just a few errors like these referring to the Bootstrap theme.

They seemed to have kicked in after the web profile module was installed....

page not found 07/15/2016 - 22:20 /drupal_social/public_html/profiler/eb876a Shaun Holt
php 07/15/2016 - 22:18 Drupal\Core\Theme\MissingThemeDependencyException: Base… Shaun Holt
page not found 07/15/2016 - 22:18 /drupal_social/public_html/profiler/6e79ca Shaun Holt
system 07/15/2016 - 22:17 config_update_ui module installed. Shaun Holt
php 07/15/2016 - 22:16 Drupal\Core\Theme\MissingThemeDependencyException: Base… Shaun Holt
php 07/15/2016 - 22:15 Drupal\Core\Theme\MissingThemeDependencyException: Base… Shaun Holt
page not found 07/15/2016 - 22:15 /drupal_social/public_html/profiler/793b4c Shaun Holt
system 07/15/2016 - 22:14 webprofiler module installed. Shaun Holt
system 07/15/2016 - 22:11 kint module installed. Shaun Holt

And looking at the folders it appears the Bootstrap theme didn't get updated properly earlier as most of it seems missing. Going to try a few things. I will be back tomorrow.

Shaun Holt’s picture

I hope ya'll forgive me for these posts... I play with the kids and work on the computer so those two things are pretty much all I do. But...

On my last post.... I copied the Bootstrap folder into the profiles themes section and place a copy into my root themes folder.... clicked on the appearance tab and sure enough bootstrap wasn't installed.... I clicked install... it ran perfect with no errors or warnings and now there are no missing pages.... I just have to fix those few links that aren't correct. So now all is good again with that.

Further updates tomorrow sometime. Ya'll have a good night... or good morning.

Shaun Holt’s picture

Here are the steps I took to install that worked good for me.

OS: Latest rolling Kali Linux distro
Local Server: XAMPP 5.6.23-0

Cloned GitHub Master directory.

In public_html/sites/default.... created settings.php and added 'social' to profile setting. Had to add the 'social' profile manually because the option doesn't appear for me on install. Also created the files directory.

From command line ran these commands:

php profiles/social/modules/contrib/composer_manager/scripts/init.php
composer drupal-rebuild
composer update -n --lock --verbose

Granted read-write permissions for entire public_html directory.

Double checked my ftp user account to make sure it had read write permissions for the entire directory.

Then I went to the website and did the install through the UI.

Shaun Holt’s picture

So far so good. I will make some appearance changes and if everything seems to keep running smooth I will upload to a subdomain on my hosting server to see how it goes. Will update on it tonight.

Shaun Holt’s picture

I chose to just zip the public_html directory and upload it to my hosting server and install it.

Ran these commands before uploading:

php profiles/social/modules/contrib/composer_manager/scripts/init.php
composer drupal-rebuild
composer update -n --lock --verbose

Created a database for it. Installed via the UI. Then I had to disable css and javascript aggregation. Everything appeared great. Enabled all the same modules I listed above. No updates yet. No errors. Status Report is clean.

I did notice something related to the bootstrap update problem above.... same issue with this install when trying to run the Bootstrap theme update.... says downloads fine... the when doing the update.php.... and it tries to update it fails...

When looking into the drupal root themes folder I see it download and uncompressed in the themes folder.... it did not create a bootstrap folder and uncompress the files....

So I copied the bootstrap themes folder into that themes folder so there was now a subdirectory... the update.php saw it and did its job successfully.

About to do try the module updates and see if that is the same problem.

my site is hosted at test.shaunholt.com if any of the people working this want an admin account there to keep an eye on things. I don't know if that would help or not but I am more than willing to allow access if it helps.

Shaun Holt’s picture

The installed module updates went fine..... just this one error..... someone else posted here: https://www.drupal.org/node/2761803

Has me curious though.... is there possibly a way to fix it without using Drush...... going to tinker around with that for a bit.

Edit: Comment #46 below was this fix.

Shaun Holt’s picture

Replaced Social profile with the newest version to get rid of the social profile outdated and unsupported error... and it worked like a champ without any errors.

All Web services modules that came with install are enabled without any errors....

All updated and no new errors.

Shaun Holt’s picture

Thought I would share this since it helped with an error I noticed while messing around earlier.

Just in case someone using this happens to see the error or similar:

Error: Mismatched entity and/or field definitions after upgrade

Petiar's solution below works.

from: https://www.drupal.org/node/2601762
by: Petiar
Thanks a lot, cilefen, I have added this piece of code

try {
\Drupal::entityDefinitionUpdateManager()->applyUpdates();
}
catch (EntityStorageException $e) {
print_r($e);
}

before $response->send(); in my index.php file, reload the webpage and the problem is gone. Of course, then I removed that block from the index.php.

Shaun Holt’s picture

I was experience an issue with using the address field while editing profile... that appears to be fixed now with something I did above. So now everything seems fully functional and working as it should. All links and fields.

Will move on to testing language translations.

Shaun Holt’s picture

No matter what content type I try to post I get this error: This value should not be null.

Trying to figure that one out. Been working on it for a while now but i think my brain is fried. Time for a break.

bayo_bajo’s picture

Good people!
I have made like a zillion attempts to install this lovely distro using the UI, keeps failing. ;(
I have tried to use composer/drush as well, no luck there.
Any chance an update is coming soon to resolve?
I need all the help I can get.
Many thanks

jochemvn’s picture

Hey Shaun,
Thanks for all your input. Much appreciated. I've created an account on your server test.shaunholt.com. I've also created an event there without any issues. So not sure what's the issue there. Did you check you logs? Can you send some more info (if available) about this issue, so we can take a closer look?

kind regards,

Jochem

jochemvn’s picture

Hey bayo_bajo,
Thanks for trying to install OpenSocial. Too bad it's not working for you. Can you give us some more information about the errors you get during installation?

kind regards,

Jochem

Shaun Holt’s picture

Hey Jochem,
Thank you for the response.

I had uninstalled all the modules I was able to one by one through the UI to see if I could figure out what caused the error... Last night before going to sleep I tried something just to see what would happen... I dropped everything in the database.... then typed test.shaunholt.com/install .... to see if it would just repopulate the database and see what would happen.... well.... it repopulated the database and got rid of the errors.... I forgot to get on and leave a post about it. Just got back home from the city and thought to post it.

I am not even showing any warnings in firebug now. So I guess the database just needed to be reset.

Now one by one I will enable the modules and check the logs and test posting.... and see how it goes.

Also, before I started uninstalling... the inline form errors module started pointing out the field on each form that was causing the error... that was one module i enabled last.... for some reason in the database at some point the fields for the body or actual post of the various posts became undefined or un usable. But, tonight we should be able to pinpoint the cause of it since I will take a slower and more watchful approach to whats going on as I enable each module.

Shaun Holt’s picture

Enabled Devel and Wedprofiler because I love the footer toolbar stats.... then enabled the language modules and added spanish and german languages... so far... everything looks good.

Set you as administrator Jochem so you can look, test and check things.

I plan on giving the starting appearance for this a look similar to www.shaunholt.com and adding an animated intro on the page that first appears when not logged in.

And migrating Drupal RPG to Drupal 8 in hopes of taking it further. I really like the potential that module has.

And Open Social I believe is a fitting distro for Drupal RPG.

Shaun Holt’s picture

Not being able to create Groups and some search api errors are the only thing that seem to be giving me problems now. I will probably be up late trying to figure that out. I will post my results later.

Shaun Holt’s picture

I messed things up even worse trying to do a reinstall of social groups. It failed on that and now nothing comes up but an error about a missing module. So going to try a few things.

Drupal\Component\Plugin\Exception\PluginNotFoundException: Plugin ID 'group_node:book' was not found. in Drupal\Core\Plugin\DefaultLazyPluginCollection->initializePlugin() (line 79 of core/lib/Drupal/Core/Plugin/DefaultLazyPluginCollection.php).

bayo_bajo’s picture

Hi Jochem,
I always get this
...An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /core/install.php?rewrite=ok&profile=social&langcode=en&continue=1&id=2&op=do_nojs&op=do
StatusText: Internal Server Error...

Please help. To be sincere, the UI is all I know.

Shaun Holt’s picture

Hey Bayo,
I am having that same issue with installing the alpha version..... out of curiosity have you tried what is posted here at: https://www.drupal.org/node/2613796

If you have already tried those let me know.

Shaun Holt’s picture

I am going to list some steps for you Bayo, let me know if these help you, its some things I noticed and tried and works for me....

Starting with fresh folder and empty database....

sites/default/default.settings.php ----- these 2 lines.... should look like this:

$settings['install_profile'] = 'social';

$settings['update_free_access'] = TRUE;

Also, create the folder files in the site/default/ directory.

Run your install as normal..... but.... when you get to the configuration screen where you give the name for your site and whatnot.... don't do anything.... go back into your directory..... goto sites folder.... the folder default will probably have permissions set to 555.... change that to 755.... go into that directory.... then go into your files folder.... edit the .htaccess file and comment out this line: # Options -Indexes -ExecCGI -Includes -MultiViews

Then go into the other folders in that folder and rename the .htaccess files.... also making sure permissions are set correctly.

Now go back to your install screen and complete your install.... that should get you to an operational website using Open Social.

Shaun Holt’s picture

If that works for you.... there is one more thing left to do..... this fixes the issue when creating a profile for your account in the Address field....

in your index.php file.... add this and run one time....

try {
\Drupal::entityDefinitionUpdateManager()->applyUpdates();
}
catch (EntityStorageException $e) {
print_r($e);
}

before $response->send(); in my index.php file, reload the webpage and the problem is gone. Of course, then I removed that block from the index.php.

Everything should work fine for you.... once your start add modules I highly recommend taking notes just in case something happens your will be able to back track and share info.

Shaun Holt’s picture

Jochem,
I did a fresh install using what I told Bayo to do above, and I have a fully function install.... figured I needed to start fresh and slowly keep better notes. If you want, go ahead and create another account. This time any issues I have I will spend more time trying to solve exactly what went wrong. But I don't think there will be many this time. Now that i saw the folder permissions and those htaccess files that were causing issues.... fixing those up front before they could cause any problems seems to have everything going smooth.

I am using the latest master public_html from github btw.

Shaun Holt’s picture

I did notice on main page... when posting say a comment to stream... it will say for example.... post made 3 seconds ago.... that time does not update or show accurate until another post is made. Don't know if that is something in my settings or code but thought I would mention it.

About to attempt porting Drupal RPG to work with this Drupal 8 distro. Thats my goal for the day.

bayo_bajo’s picture

Hi Shaun,

Followed all the steps closely, however I still got the dreaded error message.

Installing Social features
The installation has encountered an error.
Please continue to the error page

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /core/install.php?rewrite=ok&profile=social&langcode=en&id=2&op=do_nojs&op=do
StatusText: Internal Server Error
ResponseText:

Thanks

Shaun Holt’s picture

Hey Bayo,
If you want... go to the GitHub and download the master tree from there.... and use the public_html directory... that one I know will install without that error. Thats the one I am using. The one your downloading I assume is from the project page and gives me the same error when I try to use it.

jochemvn’s picture

Hey Shaun,
About the timestamp issue. This is something that's on our radar and will likely be fixed in the next alpha release.

Hey bayo_bajo,

Any luck with installing after the tips from Shaun?

kind regards.

Jochem

Shaun Holt’s picture

While messing around again today, issue with error pages appearing while installing modules through the UI were corrected by making sure this line was added to my htaccess file: php_flag safe_mode Off

The server encountered an internal error and was unable to complete your request.

Error message:
mod_fcgid: error reading data from FastCGI server

Error 500

Also had to do it to the htaccess file in the Vendors folder.

I thought it helped... still seeing it with enabling some modules. I will keep tinkering with it.

Shaun Holt’s picture

Found it..... after upgrading the core to 8.1.7.....

This was added to htaccess....

# Disable Proxy header, since it's an attack vector.
RequestHeader unset Proxy

I had to comment out the RequestHeader...

# Disable Proxy header, since it's an attack vector.
# RequestHeader unset Proxy

Now I seem to be able to enable the modules without the error.

A.Eid’s picture

i have a same problem.

Install social features tab

An AJAX HTTP error occurred.
HTTP Result Code: 500
Debugging information follows.
Path: /dev/social/core/install.php?rewrite=ok&profile=social&langcode=en&id=2&op=do_nojs&op=do
StatusText: Internal Server Error
ResponseText:

Shaun Holt’s picture

A.Eid,

Which version are you using? You may want to use the most recent github version for now.

Shaun Holt’s picture

After doing updates I cant post to several areas, the main page to post a comment in stream is one..... it produces errors now, while looking at the errors, I noticed something.... below I marked to lines with ( look here ---> ) at the end of those lines I see entity is spelled entitiy..... could that be causing the issue? Visiting the website and trying to post to the stream you should be able to view the entire page with the error and backtrace, I have the errors turned on if you want to take a look.

Drupal\Core\Entity\EntityStorageException: The "message_type" entity type does not exist. in Drupal\Core\Entity\Sql\SqlContentEntityStorage->save() (line 756 of core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).

Drupal\Core\Entity\EntityTypeManager->getHandler('message_type', 'storage') (Line: 193)
Drupal\webprofiler\Entity\EntityManagerWrapper->getHandler('message_type', 'storage') (Line: 54)
Drupal\webprofiler\Entity\EntityManagerWrapper->getStorage('message_type') (Line: 80)
look here ---> Drupal\activity_logger\Service\ActivityLoggerFactory->getMessageTypes('create_entitiy_action', Object) (Line: 29)
look here ---> Drupal\activity_logger\Service\ActivityLoggerFactory->createMessages(Object, 'create_entitiy_action') (Line: 34)
Drupal\activity_creator\Plugin\ActivityActionBase->createMessage(Object) (Line: 37)
Drupal\activity_basics\Plugin\ActivityAction\CreateActivityAction->create(Object) (Line: 19)
activity_basics_entity_insert(Object)

Shaun Holt’s picture

When install the new Alpha 6 release from scratch.... this is the error that comes up on the verify requirement check screen right after choosing a language.

Address module requirements) Not installed
The Address module requires the commerceguys/addressing library. For more information check our readme
Error Address module requirements) Not installed
The Address module requires the commerceguys/enum library. For more information check our readme
Error Address module requirements) Not installed
The Address module requires the commerceguys/intl library. For more information check our readme
Error Address module requirements) Not installed
The Address module requires the commerceguys/zone library. For more information check our readme

ronaldtebrake’s picture

Hi Shaun,

Thanks for all your feedback!

Due to the installation issues we updated the requirements a bit. We noticed the dependencies of our dependency (the libraries of the address module in this case) aren't reflected in the installation requirements. So during the installations requirement step we now check if all the libraries are installed by checking if classes from the library are available for the address module. This is what you've encountered during the installation as well, the Drupal installation can't find the classes and thus reflect the missing library dependencies.

Once the libraries are installed by the manual composer installation step the installation should continue.

Hope this feedback helps the installation proces until composer support for installation profiles and distributions hit's drupal.org.

Shaun Holt’s picture

Thank you for your response Ronald. Will use composer and re install shortly.

Shaun Holt’s picture

Alright, installing the Alpha 6 version....

I unzipped the folder....

ran the composer commands:

php profiles/social/modules/contrib/composer_manager/scripts/init.php
composer drupal-rebuild
composer update -n --lock --verbose

Then zipped the directory....

Uploaded and unzipped to test host directory....

Make sure the "." files are in root directory....

Create files folder in sites/defaults/ directory

Run install from the site address.... test.sitename.com/ in my case....

Once the install has completed.... set the permissions for the sites/default folder to 755

Set the permissions for sites/default/files folder to 755

Comment out the line : # Options -Indexes -ExecCGI -Includes -MultiViews in the .htaccess files located in
the directory sites/default/files and sites/default/files/config.../sync/

I have a working install.

Now going to enable modules and see what happens.

Shaun Holt’s picture

Enabled modules. Everything is up to date. Nothing appears broken. Able to post to all areas. So far looks great. For those that tried the other releases I recommend trying this release and giving feedback. Feel free to go to test.shaunholt.com to see it installed there and mess around with it if you want to before installing.

Shaun Holt’s picture

After updating Search Api.... this error appears in status report....

Mismatched entity and/or field definitions
The following changes were detected in the entity type and field definitions.
Search task

The Search task entity type needs to be installed.

It also effects using the search bar.

Using Entup to correct this I believe is the reason the ability to post comments in certain areas gets broken.... so will test that in a little bit to verify that is the case.

Trying to set location in the profile still causes an error and fails when updating the profile. But is also corrected with entup.

There is another method for updating the entities, I wrote it down somewhere, will find it it and test it as well and then post the results.

update: Entup corrected the search api error that was listed.... able to update country/location info in profile... but using the search bar is still causing an error.... it is a 500 error so I am assuming it is a permission somewhere, will look to find it and post what I find here.

Still able to post so thats a good sign.

Shaun Holt’s picture

When using search bar, this is the message/error being generated in the logs.

Location: http://test.shaunholt.com/search/content/drupal

Message: Recoverable fatal error: Argument 1 passed to Drupal\search_api\Display\DisplayDeriverBase::setEntityTypeManager() must be an instance of Drupal\Core\Entity\EntityTypeManager, instance of Drupal\webprofiler\Entity\EntityManagerWrapper given, called in /home/www/test.shaunholt.com/profiles/social/modules/contrib/search_api/src/Display/DisplayDeriverBase.php on line 38 and defined in Drupal\search_api\Display\DisplayDeriverBase->setEntityTypeManager() (line 64 of /home/www/test.shaunholt.com/profiles/social/modules/contrib/search_api/src/Display/DisplayDeriverBase.php).

ronaldtebrake’s picture

Hi Shaun,

Thanks again for the feedback, it's really helpful!

Since we are in our alpha state we haven't been able to provide update paths yet, our beta is getting closer and that's when we fully support update paths and these issues shouldn't occur anymore.
But this is indeed the reason why you needed to update entities after the new alpha release. More info look https://www.drupal.org/node/2542748.
That's also why the error appeared in your status report.

Regarding updating search_api: https://www.drupal.org/node/2773213 there seems to be an issue raised already, if you can try the patch there it hopefully fixes the issue you encounter.

Hope this helps.

Shaun Holt’s picture

I think I almost have the search issue figured out.... I think its url/path related.... I notice the test.shaunholt.com/search/node and seach/user work fine.... but using the search function from the main page tries to pass the search keyword to /search/content and /search/content is having the issue of working.... 500 error. I'm determined to figure it out. Will play with permissions some more.

I tried the patch but it didn't make a difference for me.

Shaun Holt’s picture

I was asked a question on my test site... it would be a question for ya'll to answer. So I shared the link here. But the question asked was:

Sub group/ hierchical strcturing of groups planned for the distro?

currando’s picture

Hi there,

I managed to successfully run multiple Alpha5 installs. What I noticed though is that for some reason it's much more difficult to install in a sub-folder...after installation most of the menu items on the top-nav would redirect to the root folder (root domain) instead of the Open Social root...

Today I ran a clean install on a local Centos 6.7 machine after installing: git, composer and drush. Everything seems to be fine, but I'm unable to add any content, update profile, etc. I keep getting this error:

Recoverable fatal error: Argument 1 passed to Drupal\\Core\\Form\\FormState::setError() must be of the type array, null given, called in /var/www/html/core/lib/Drupal/Core/Field/WidgetBase.php on line 441 and defined in /var/www/html/core/lib/Drupal/Core/Form/FormState.php on line 1151

MrPaulDriver’s picture

Still seeing similar installation error in 8.x-1.0-alpha5

ronaldtebrake’s picture

Hi Shaun, regarding: #79,

Thanks for the feature requests, in this case it's better to open up a new issue in the issue queue so we can handle it separately from this discussion.
You can find our roadmap here: Link to roadmap
But there is good news, we use the group module and the maintainer wants to port the subgroup there, so that means it will be available in the future. See https://www.drupal.org/node/2736233

#80, #81

We have a alpha 6 available, it's worth checking out.
We also fully support composer now, and highly recommend using it for Open Social.

Download Open Social with the following command

composer create-project goalgorilla/social_template:dev-master DIR --no-interaction

Composer will create a new directory called DIR. Inside this newly created directory you will find the html folder with the entire code base of Open Social distribution.
You should be able to install it like any other Drupal site by using Drush or the UI from there.

mhamed’s picture

Ok I've used the normal drupal installation after using
composer create-project goalgorilla/social_template:dev-master DIR --no-interaction
everything was alright about the install
but
I can not create a group since it gave me :

The website encountered an unexpected error. Please try again later.

I ve tried to reinstall but the same error after trying to create a group

And the same problem was happening first on normal drupal 8 installation when I want to create a group with a location .
This perhaps is due to the geofield or something to do with the location of the group.

MrPaulDriver’s picture

Strange. Composer continues to download alpha5.

I'm new to Composer. Do I need to clear a cache or something?

Shaun Holt’s picture

The error with creating a group... probably 500 error... may need to check your folder permissions... do you have logging enabled to check the errors?

Enes’s picture

Hi Shaun Holt ;

I try to make this work for 3 days. But dont make.

I made process steps;

https://www.drupal.org/node/2785035#comment-11524331

Last step;
http://stackoverflow.com/questions/39016346/drupal-8-composer-your-requi...

Please help me;

Enes’s picture

FileSize
67.57 KB
49.9 KB

Error message

Shaun Holt’s picture

The Search Api update fixed the search issues i was having.

Enes’s picture

Thank you very much to everyone who helped.
I solved the problem.

I stopped using CentOS.
I installed Ubuntu. I installed Plesk. Then I re-established composer. It was a clean install.

Apparently there was a server problem.

Enes’s picture

There are some components in the system can not solve.

1. Notice does not. No notification did not occur.

2. Themes page template can not find the file.

3 Call the server is malfunctioning. It comes from a white screen.

4. Profile no formal background loading area.

That's all for now.. :)

Enes’s picture

3. I solved the problem. Home Search module was supposed to close.

Shaun Holt’s picture

Great to hear.

Shaun Holt’s picture

When installing the Alpha 7 version of the profile.... need to run the command composer require.... and require the commerceguys libraries.... intl.... country.... zone.... addressing.... the first 4 listed, then the install should work fine. It did on my end. http://test2.shaunholt.com

So far things seem to be working fine.

Shaun Holt’s picture

I think ya'll are about ready for beta.... great job guys. Love it. Still testing things but so far no issues.

Shaun Holt’s picture

.htaccess file in directory... profile/default/files/.htacess this line prevents user profile image from showing....

Options -Indexes -ExecCGI -Includes -MultiViews

So commenting it out.... # Options -Indexes -ExecCGI -Includes -MultiViews allows the image to show.

Shaun Holt’s picture

When leaving a comment on a test blog for example.... the text of what is being typed in the comment box cannot be seen while being typed.

Enes’s picture

Hi Shaun Holt
I made a successful installation. Excuse me, I have a few questions.
See. ( "Ankaakademi.com")

1. Notifications not working? Still statement seems to zero.

2. The theme also want to make edits. But I have not decided what I will edit files. These files;
CSS, etc. page.tpl

3. I want to edit the menu. "New yes", "New topic," I want to write instead of Turkish. I could not do.

4. Is it possible to install Profile Cover picture?

5. Finally, the content is deleted by a member of the summer shows server error page.
I have the same problem as the test site.

Thanks;

Shaun Holt’s picture

Hey Enes,

I will goto your site shortly and check things out.

Enes’s picture

Shaun Holt
Sure would. I am waiting. Whenever you want.

Enes’s picture

FileSize
61.97 KB

I'll edit the theme files from here?

CSS and page.tpl files...

Enes’s picture

FileSize
65.22 KB
183.55 KB

I'm looking for 2 days.
Menu How are organized?

Writing in the English language now. I want to make Turkish.

The following pages do not work. Results can not be found.
/ Admin / config / regional / translate

Example: My Profile = profile
My Topics = My Content

I want it to be shaped.

Thanks

Enes’s picture

Do not you know that?

Enes’s picture

FileSize
40.88 KB

I can not make the menu language translation.

Words can not be found.
How do I get the menu arrangement?

kaizerking’s picture

when will we get rid-of composer requirement to install open social ?

jaapjan’s picture

Composer will remain a requirement for Open Social because it has many benefits for maintaining a distribution and we are depending on some modules which use other PHP libraries as well. But as bojanz said already the drupal.org packaging process will also add composer dependencies in the future. When that works you should be able to download a ready-to-use zipfile with all the dependencies included.

Here are some interesting links which may help you further in case you want to learn more about Composer for Drupal:
https://www.lullabot.com/articles/goodbye-drush-make-hello-composer
https://docs.google.com/presentation/d/1gxcxT6o47xVrfsZ7ZSQKjBRT-gfE54A1...

Enes’s picture

FileSize
34.73 KB

I want to upload multiple pictures ckeditor.

How can I do that.

Photography takes too much time to install one by one.

Thanks;

Enes’s picture

My second question is more.

"Drush8 pm-update" and I've done up to date.

The site was also updated kernel.
But the site was opened.
I installed the old backup again. I solved the problem.
But how do I install the update.

bojanz’s picture

"drush pm-update" is pretty broken for D8 cause it blows away Composer libraries.
The intention is to deprecate and remove this command in the long run.
You need to use composer update.

nielsvandermolen’s picture

Title: Installation Problem » Installation Problem alpha
Status: Active » Closed (outdated)

Closing this issue because the beta version is released and most of the content is a bit outdated because the thread is so long. Feel free to create new installation issues when they occur and lets try to keep them focussed on concrete problems and improvements so we won't end up with another 100+ thread which is hard to keep track of.

Of course we welcome all the work and kudos for Shaun!

Enes’s picture

I want to use composer for update.

But , I dont know code.

Please help me.

Normally ,I use this code => "drush pm-update"
But, it doesnt run now. Why ?

jaapjan’s picture

@Enes

Let's try to keep things on topic. This is about installation. Could you create a new issue for your request?

Jesse Mendoya’s picture

It may be a long shot posting on this form, but I have been trying to install OpenSocial for a couple days now and I keep getting this error, any clue how to fix it and move on?

An AJAX HTTP error occurred.
HTTP Result Code: 200
Debugging information follows.
Path: /core/install.php?profile=social&langcode=en&continue=1&id=2&op=do_nojs&op=do
StatusText: OK
ResponseText: Exception: No entity type for field type on view following in Drupal\views\Plugin\views\HandlerBase->getEntityType() (line 711 of C:\Inetpub\vhosts\crewcloud.online\dev.crewcloud.online\DIRECTORY\html\core\modules\views\src\Plugin\views\HandlerBase.php).
jochemvn’s picture

Jesse,
What version are you trying to install?
Jochem