pmoreno-rodriguez / grav-theme-telephasic

Telephasic theme by HTML5Up ported to Grav
Other
4 stars 2 forks source link

error upon switching to this theme in grav #12

Closed diomed closed 11 months ago

diomed commented 11 months ago

2023-10-24 16 08 11 grav zeabur app e1045233763d

pmoreno-rodriguez commented 11 months ago

Hi @diomed This error occurs with clean, newly installed theme?. Have you cleared the Grav cache when changing themes? I'm making some changes to this theme and will soon upload a new version, so your contributions are valuable to me.

diomed commented 11 months ago

yes, upon cliean download via admin panel. i've cleared cache. still same error.

pmoreno-rodriguez commented 11 months ago

Could you test only with the demo content, without any other content?

diomed commented 11 months ago

I have no other content. just installed grav on one hosting, trying out some themes

pmoreno-rodriguez commented 11 months ago

Hi @diomed I just installed a fresh installation of Grav. By default it comes with the Quark theme. Then I installed the Telephasic theme and I haven't had any problems, with the two pages that come by default.

I have downloaded the .zip package from GitHub and installed it from the Direct Install option, in the Tools section of Grav admin.

I attach the screenshot image.

telephasic_fresh

diomed commented 11 months ago

could be my hosting that's an issue. on localhost indeed works fine for me as well.

just dont know why i can install every other theme and it displays ok, but yours give back this error. [happpened with 2021 v as well]

¯_(ツ)_/¯

pmoreno-rodriguez commented 11 months ago

What do you mean by "[happpened with 2021 v as well]"?

diomed commented 11 months ago

What do you mean by "[happpened with 2021 v as well]"?

I did some research and appears your themes seem to be breaking when page type is item. Then they display error above.

pmoreno-rodriguez commented 11 months ago

you mean future2021, editorial and telephasic?

diomed commented 11 months ago

you mean future2021, editorial and telephasic?

I didnt try editorial but yeah, for those 2 that's true

pmoreno-rodriguez commented 11 months ago

I think the problem may be in the taxonomy. Do you have the 'tag' taxonomy defined? The code that is passed in the sidebar is:

{% if config.plugins.taxonomylist.enabled %}
{% include 'partials/taxonomylist.html.twig' with {'base_url':new_base_url, 'taxonomy':'tag'} %}
{% endif %}

If so, I may need to do one more check before passing the parameters in the taxonomylist plugin

diomed commented 11 months ago

when page template is blog this appears 2023-10-27 14 45 02 localhost 79c07420597c

pmoreno-rodriguez commented 11 months ago

Can you see the blog in the demo page?. It has the latest version of theme and it works fine. If it works, why yours not?

You can try to disable all plugins related with blog (archives, taxonomy list, etc), and test if the error still showing.

diomed commented 11 months ago

please see grav discord - general

pmoreno-rodriguez commented 11 months ago

It seems an archive plugin error

pmoreno-rodriguez commented 11 months ago

please see grav discord - general

I've seen the discord and almost all grav themes in repository, have the same code lines in blog,item, sidebar, taxonomylist, archives,etc templates. I've been testing again with a fresh Grav installation and without tag and category taxonomy. The page it doesn't show any error. I don't know what happen with your Grav page, however it would be interesting you had any online site with this error.

diomed commented 11 months ago

sent you DM in Discord

pmoreno-rodriguez commented 11 months ago

@diomed I use Discord a little, but I'll try it.

pmoreno-rodriguez commented 11 months ago

@diomed Have you tested if version 1.0.5 solves the problem?

diomed commented 11 months ago

this is inded ffixed in 1.0.5. so I'll close this now.