Perlkonig / grav-skeleton-knowledge-base

Skeleton package of the Knowledge Base theme for Grav CMS
https://www.perlkonig.com/knowledge-base
MIT License
22 stars 14 forks source link

Sort error #1

Closed k1ngf15h3r closed 7 years ago

k1ngf15h3r commented 7 years ago

I really like to test this awesome theme, but I can not get it runnig.

I installed grav+admin plugin first, than added the knowledge-base theme and at least I replaced config and pages content with the skeleton content. but everytime I want to open my site I got:

0 - The sort filter only works with arrays or "Traversable", got "NULL" in "default.html.twig" at line 1.

Any idea how to fix this? Is there a complete skeleton avaiable soon?

Perlkonig commented 7 years ago

I'm finally building the skeleton and having the same error. Which is weird because the demo site is fine. Will work this out today and get the skeleton uploaded hopefully this weekend.

k1ngf15h3r commented 7 years ago

Thank you for the Information. I will look into it when the skeleton is ready :)

Am 05.11.2016 4:52 nachm. schrieb "Aaron Dalton" notifications@github.com:

I'm finally building the skeleton and having the same error. Which is weird because the demo site is fine. Will work this out today and get the skeleton uploaded hopefully this weekend.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Perlkonig/grav-skeleton-knowledge-base/issues/1#issuecomment-258620307, or mute the thread https://github.com/notifications/unsubscribe-auth/AA_s1Uiy-9T3mBS6TLG8ntgv5qIRMl6Gks5q7KZWgaJpZM4KqM9r .

Perlkonig commented 7 years ago

The problem was that count-views wasn't being properly installed. I just released a fully functioning skeleton. Reopen if it's still broken for you. Thanks!

k1ngf15h3r commented 7 years ago

Works :) but authors Page is empty. Is this correct when I run skeleton without change? Which contact Form did you use in your Demo?

Perlkonig commented 7 years ago

The Authors page Should list the four authors. Can you send me a screen capture of what you're seeing?

No built-in contact page. Either use the built-in Form plugin or go with something like the recaptchaContact plugin (easiest to just drop into a page).

k1ngf15h3r commented 7 years ago

This is what I see.

https://wiki.hagels.net/taxonomy?name=author

2016-11-05 23_52_16-by taxonomy _ knowledge base

Perlkonig commented 7 years ago

Thanks for the link. So none of the taxonomies are working. Hrm...

Perlkonig commented 7 years ago

I just extracted the binary into a clean folder and it appears to be working. Have you double checked that all the pages are there?

k1ngf15h3r commented 7 years ago

the pages are there, all three default author pages ...

k1ngf15h3r commented 7 years ago

do I need the taxonomylist plugin? this should be missing in the skeleton. which route does it need?

Perlkonig commented 7 years ago

You do not need the taxonomylist plugin. By pages I mean user/pages/01.home/*.

k1ngf15h3r commented 7 years ago

Yes they are are there.

screenshot_20161106-011056

Perlkonig commented 7 years ago

Gotta love JuiceSSH 😄

If you don't mind, can you please zip up your entire user folder and send it to me? I need to see if I can duplicate this. Thanks!

k1ngf15h3r commented 7 years ago

Yeah JuiceSSH is great for administrtion on mobile ;)

Hope this help you to duplicate the error : https://github.com/k1ngf15h3r/kb-dev

k1ngf15h3r commented 7 years ago

Did a fresh install of the skeleton this morning but same result. Does the git content help you?

Perlkonig commented 7 years ago

According to what you posted, not all the plugins are installed. Once I installed them all, it worked fine.

I just updated the README. Regardless of how you download the skeleton, you need to run bin/grav install to get all the dependencies installed. Try again, please, and let me know.

k1ngf15h3r commented 7 years ago

Getting this output when doing bin/grav install result is the same as before -.-

[root@mail wiki]# bin/grav install
Installing vendor dependencies
Loading composer repositories with package information
Installing dependencies from lock file
Nothing to install or update
Generating optimized autoload files
    Skipped installation of bin bin/minifycss for package matthiasmullie/minify: file not found in package
    Skipped installation of bin bin/minifyjs for package matthiasmullie/minify: file not found in package
Cloning Bits
============
/var/www/html/wiki/user/plugins/error already exists, skipping...
/var/www/html/wiki/user/plugins/problems already exists, skipping...
/var/www/html/wiki/user/plugins/relatedpages already exists, skipping...
/var/www/html/wiki/user/plugins/simplesearch already exists, skipping...
/var/www/html/wiki/user/plugins/readingtime already exists, skipping...
/var/www/html/wiki/user/plugins/count-views already exists, skipping...
/var/www/html/wiki/user/themes/knowledge-base already exists, skipping...
k1ngf15h3r commented 7 years ago

Can you tell me which plugins were missing?

Am 07.11.2016 14:11 schrieb "Aaron Dalton" notifications@github.com:

According to what you posted, not all the plugins are installed. Once I installed them all, it worked fine.

I just updated the README. Regardless of how you download the skeleton, you need to run bin/grav install to get all the dependencies installed. Try again, please, and let me know.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Perlkonig/grav-skeleton-knowledge-base/issues/1#issuecomment-258831579, or mute the thread https://github.com/notifications/unsubscribe-auth/AA_s1XSN0eMT3DFOMPiBsoOujKaCgTwkks5q7yObgaJpZM4KqM9r .

Perlkonig commented 7 years ago

I'm not sure what to say. I just now did the following steps:

  1. Download the binary ZIP from the latest release.
  2. Unzipped into grav folder.
  3. From the grav folder, I typed bin/grav install and got the same output you did.
  4. (Just for me and because of my setup, I did a chgrp.)
  5. It works.

As for the missing plugins, go to your repo and you'll see. Even the theme was missing from what you sent. Probably just an issue with .gitignore files ore something. Regardless, it keeps installing fine for me.

k1ngf15h3r commented 7 years ago

I will test it on my offline system at home. Maybe it is something on my online webserver. Could it be something with nginx? or with the variable base_url?

Perlkonig commented 7 years ago

I don't think it's a problem with the server because when I downloaded your repo and installed the theme, I got the same error. It wasn't until all the plugins were properly installed that things started working. Can you just zip up the user folder (to avoid issues with .gitignore files) and post it?

k1ngf15h3r commented 7 years ago

Here is the zip of the user folder user.zip

Perlkonig commented 7 years ago

Thanks! I installed that on the dev server and everything is working as expected..

k1ngf15h3r commented 7 years ago

hm that is strange. only thing that is other on my setup is that I run it not in a subfolder, but this could not be the problem. will be at home in an hour and install it on my arch linux.

Perlkonig commented 7 years ago

Best of luck. Let me know.

k1ngf15h3r commented 7 years ago

If I hardcode the taxname in the taxonomy.html.twig it works 😆

{% block content %}
    {% set taxname = 'author' %}
    {% set taxval = uri.query('val') %}
    {% if taxname %}
        {% if taxname == 'category' %}

https://wiki.hagels.net/taxonomy?name=author

Perlkonig commented 7 years ago

Then maybe your server is doing something with the query string? uri.query is a Grav built-in function for extracting parameters from the query string (the part of the URL after the ?).

k1ngf15h3r commented 7 years ago

Will check this at home

k1ngf15h3r commented 7 years ago

Do you use nginx or apache? If nginx can you show me your conf?

k1ngf15h3r commented 7 years ago

Solved the problem :)

Added index.php?$query_string at the end of the try_files Option in my nginx conf ;)

Perlkonig commented 7 years ago

I use Apache. I have no experience with nginx. Glad you got it working!

k1ngf15h3r commented 7 years ago

Thank you for your help and patience

Perlkonig commented 7 years ago

Au plaisir.