Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

General

Issues after publishing Grav with Gantry and my own Theme

Started by Andre 8 years ago · 4 replies · 782 views
8 years ago

Hey guys,

i've some troubles with Grav. On a local virtual machine, i've created a new fresh installation of the Grantry 5 "Helium" Skeleton for Grav and developed my own Theme. On my local machine evrything is working fine. I've created my own git repsoitory which automatically release my local changes to my live server, and ignores the cache, tmp and log folder.

But on my live server i receive a lot of issues.

The first issue is:

"E_WARNING - Class 'Grav\Plugin\Form\Form' not found"

After reinstalling the Form Plugin with the Grav CLI GPM, I get the message that the "Parent Theme" can not be found.

As I said, everything runs fine on my local virtual machine. Unfortunately, after I commit and push everything to my git repository and the data is published on my live server, it does not work anymore. The same problem I have when I load the data manually through a zip archive on my live server. I've attached my Grav Logfile.

I hope somebody can help me.

Greetings,
Pixelpaule

8 years ago

Your vendors probably get gitignored , if not them, it'll be the theme that gets ignored I think, if you have access to your site through ftp / ssh, doublecheck that all the files are there :) I'm sure there is a difference. I do find it strange that a zip wouldn't work? Yet again, if you have ssh access to your server , do a 'php bin/gpm index' command to check what themes & plugins are registered as installed

8 years ago

hey RobLui,

sorry that i answer so late. I solved the issue and it was not Grav, but the virtual machine i use. The Problem is, that my virtual machine is managed by Vagrant and Virtual Box. The root folder where Grav is running in, is a shared folder on Virtual Box and it can not differentiate between upper and lower case.

After setting the correct Theme name in lower case spelling, it works fine on both systems.

Greetings
Pixelpaule

8 years ago

Hello everybody,

maybe I have found the problem myself and solved. Before I developed my own theme, I renamed the existing "Helium Theme" at the beginning. I probably dont have set the same Name in "themeName/gantry/theme.yaml" at the Line "theme: parent:", like the folder Name of my theme.

As an an example:

My folder is called "mytheme" and in the file: "mytheme / gantry / theme.yaml" is "theme: parent: myTheme".

The different spelling of the name probably led to the problem. Me wonder, however, that it runs locally on my virtual machine, but not on my live server?

How can that be?

Greetings,
Pixelpaule

8 years ago

to make a very late reply to your question: different servers ignore/don't ignore uppercase / lowercase spelling, and when on localhost (for me this is as an example) I can make an uppercase/lowercase mistake too, but as soon that the deployment to live comes in to hand, the live version stops working because of it. Hope this clears your mind up a bit if you'd read this ;) @Pixelpaule

Suggested topics

Topic Participants Replies Views Activity
General · by Jerry Hunt, 4 days ago
2 85 13 hours ago
General · by pamtbaau, 18 hours ago
1 60 18 hours ago
General · by Andy Miller, 1 day ago
0 47 1 day ago
General · by Marcel, 12 months ago
6 350 5 days ago
General · by Duc , 6 days ago
3 44 5 days ago