Wikifab / wikifab-main

Follow this tutorial to install you own Wikifab
Other
82 stars 21 forks source link

Incorrect Package Names in Composer.Local.json #29

Open pomeroyb opened 4 years ago

pomeroyb commented 4 years ago

If you are using Method # 2 from the README, and installing Wikifab using composer, you will get the following error:

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

  Problem 1
    - The requested package wikifab/inputbox could not be found in any version, there may be a typo in the package name.
  Problem 2
    - The requested package wikifab/socialprofile could not be found in any version, there may be a typo in the package name.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
 - It's a private package and you forgot to add a custom repository to find it

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Running update with --no-dev does not mean require-dev is ignored, it just means the packages will not be installed. If dev requirements are blocking the update you have to resolve those problems.

This is because InputBox and SocialProfile are named incorrectly in Composer.Local.json.

To fix, open composer.local.json

cd /var/www/yourwebsite
nano composer.local.json

Change "wikifab/InputBox": "^128.2.0", to "wikifab/input-box": "^128.2.0", and change "wikifab/SocialProfile": "^1.8.0", to "wikifab/social-profile": "^1.8.0",

This can be confirmed by checking the packagist pages for input-box and social-profile

SpottedPaint commented 4 years ago

@pomeroyb Thank you your information that got me past the composer stage. Did you manage to get a full install? The tuturial form doesn't seem to be working for me, I'm getting a simpler one box form.

pomeroyb commented 4 years ago

I would say I've managed to get a 90% install. Still has some small issues but it's good enough for my purposes.

Not quite sure what you mean by one box form. Make sure you're running the international version of initWikifab. sudo php maintenance/initWikifab.php --setWikifabHomePage --int

You should be seeing the forms showing up nearly as they do on the Wikifab page. The only thing missing should be the text editor toolbar, which you can triage by looking at this issue: https://github.com/Wikifab/wikifab-main/issues/24

SpottedPaint commented 4 years ago

Thanks.