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

Nothing shown after new upload

Started by Muut Archive 10 years ago · 12 replies · 356 views
10 years ago

I changed our webpage to include the multi-langauage feature (using LangSwitcher plugin). Testing locally with Apache webserver was sucsessfull. To make sure that the homepage would work correctly,I uploaded the whole archive. It displays only a white page. Running on Chrome view source, admin or webalizer shows however, normal results. The provider cannot find a reasoneither. What could have gone wrong?

10 years ago

A blank page is always a error logged somewhere. turn on error reporting the maximum level in your php.ini, and check the PHP error logs.

10 years ago

Thanks, Flavio. I checked everything and could only find that the source code gets interrupted

</head>
<body id="top" class="modular header-image fullwidth">
<div id="sb-site">
<header id="header">
<div class="logo">
<h3><a href="/en">

The same site on the local server is:

</head>
<body id="top" class="modular header-image fullwidth">
<div id="sb-site">
<header id="header">
<div class="logo">
<h3><a href="/magment.de/en"><img src="/magment.de/images/4/2/d/5/9/42d59e0bd5949e2b62aba431bc028163d245 065d-magment4b.png" /></a></h3>

So the difference in the <h3> line is "/magment.de/en" vs. "/en". magment.de is the website. Where did it get lost?

Regards

Mauricio

10 years ago

It probably halts on an error. Did you turn error reporting to max in the php.ini?

10 years ago

I found the issue and is related to the path for loading of images . I could correct this to some extent but havestill issues withthe blogmenu of the deliver theme. - How do you exactly maximize php.ini? Just copy and overwriting the development version? What error types should be turned on?

10 years ago

How can you generally make sure iff the site works locally, that it will also work on the server? The referencing of the base_url does not seem to be so straighforward after implementing multi-language. Wha thas to be considered to makea smooth transition?

10 years ago

already checked. and tested even with 777. It is really a path issues.

10 years ago

Here one example:

  1. Deliver: http://demo.getgrav.org/deliver-skeleton/blog

    <img src="/deliver-skeleton/images/d/c/a/6/e/dca6e5c1ded82adced1078cfc6ad4a 3427bc916d-unsplashtiagogerken.jpeg">

  2. My modified version, running ok locally:
    <img src="/magment.de/images/1/1/5/4/5/1154534e69283f0d94457bb82e018368fcba 3693-dsc0020.jpeg"

Due to this image link the copied version on the web stops att the instruction before.

What could be the issue? The site is called magment.de and the image file can be accessed following this very link.

This is driving me nuts!

10 years ago

The blog.html.twig generateing the image link reads:

{% if base_url == base_url_relative %}
{% set feed_url = base_url~'/'~page.slug %}
{% endif %}

{% block content %}
{% set blog_image = page.media.images|first %}

If I could set the php.ini to max, probably the issue could be detected other than a blank page.

10 years ago

Thanks, Flavio. I will try all this and let you guys know. Strange enough that this problem came up only after installing multi-language feature.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 1357 9 years ago
Archive · by Muut Archive, 9 years ago
2 936 9 years ago
Archive · by Muut Archive, 9 years ago
2 4066 9 years ago
Archive · by Muut Archive, 9 years ago
1 2954 9 years ago
Archive · by Muut Archive, 9 years ago
3 1120 9 years ago