GithubHelp home page GithubHelp logo

Comments (15)

pvankouteren avatar pvankouteren commented on May 21, 2024

Hi! Some questions regarding the issue:

  • Do you run the latest version of Bolt?
  • What's the difference between the entries?

from bolt.

gmoigneu avatar gmoigneu commented on May 21, 2024

Running on cf847aa (Sun Nov 18 16:46:59 2012 +010)

I can't see any differences between the entries. Here is the SQL dump : http://pastebin.com/Lw05MmJ2

And my contenttypes :

entries:
name: Entries
singular_name: Entry
fields:
title:
type: text
class: large
slug:
type: slug
uses: title
image:
type: image
teaser:
type: html
height: 150px
video:
type: video
body:
type: markdown
height: 300px
kudos:
type: number
taxonomy: [ categories, tags ]
record_template: entry.twig
listing_template: listing.twig
listing_records: 10
sort: datecreated DESC
recordsperpage: 7
rss:
enabled: true
feed_records: 10
feed_template: rss.twig
content_length: 250

from bolt.

gmoigneu avatar gmoigneu commented on May 21, 2024

Just updated to f42ccdd and I got the same error.

from bolt.

pvankouteren avatar pvankouteren commented on May 21, 2024

I'll try and reproduce your issue

Oh AND I (or somebody else) will try to solve it as well ;-)

from bolt.

bobdenotter avatar bobdenotter commented on May 21, 2024

I actually bumped into the same issue today, so i'll most likely be able to reproduce and fix it.

from bolt.

pvankouteren avatar pvankouteren commented on May 21, 2024

Ah, that'd be great. Be sure to also take a look at issue #20 :)

from bolt.

bobdenotter avatar bobdenotter commented on May 21, 2024

Note: this doesn't solve the issue yet. Just helps me pinpointing it. Expect a fix soon. :-)

from bolt.

bobdenotter avatar bobdenotter commented on May 21, 2024

So, the issue might be fixe now, and it might not be. Regardless, if you could try updating, then it will either have fixed the problem, or it gives you a better error, or at the very least it will give us a hint where to continue looking.

See the screenshot:
screenshot

from bolt.

gmoigneu avatar gmoigneu commented on May 21, 2024

After update, problem is still happening :


Used templates:
1. view/error.twig
2. view/_header.twig
3. view/_footer.twig

Route: /_contenttypeslug_slug
Request URI: /entry/migrating-from-wordpress-to-bolt
Parameters: 
arr(2) 
[
    "contenttypeslug" => str(5) "entry"
    "slug"            => str(32) "migrating-from-wordpress-to-bolt"
]```

from bolt.

bobdenotter avatar bobdenotter commented on May 21, 2024

So, for some reason there's no message about the missing template, but bolt still falls back to the error template.
The (contenttype) in the notification means that you've set entry.twig in your contenttype.yml, which should be OK.

Are you positive that the file /theme/svbtle/entry.twig exists, and is readable by the webuser?
Does the 'log entries' box in the debug bar mention anything?

from bolt.

gmoigneu avatar gmoigneu commented on May 21, 2024

Yes, the entry.twig is present and readable. And it's correctly working for another entry. The log doesn't contain anything.

/var/www/nls.io/web(branch:master*) # ls -la theme/svbtle/entry.twig
-rwxrwxr-x 1 web13 client7 943 21 nov.  21:19 theme/svbtle/entry.twig

Do you want a direct SSH access to the files if it can help ?

from bolt.

bobdenotter avatar bobdenotter commented on May 21, 2024

Yes, if i could have access to the ssh (and Bolt itself, of course), i'm pretty sure i can figure out what the bug is. Feel free to mail me at [email protected].

from bolt.

djoeybodenstaff avatar djoeybodenstaff commented on May 21, 2024

After publishing an entry, I get the same error as mentioned above. I'm working with Bolt 0.95.
Log entries:
". PHP-Notice: Undefined offset: 1.
in: /public_html/vendor/doctrine/dbal/lib/Doctrine/DBAL/Schema/SqliteSchemaManager.php::166
2. PHP-Notice: Undefined index: record_template.
in: /public_html/app/src/Bolt/Content.php::550
3. Template "" is not defined ().
in: /public_html/app/app_backend.php::217
4. PHP-Notice: Undefined index: file.
in: /public_html/app/app_backend.php::230 "

from bolt.

bobdenotter avatar bobdenotter commented on May 21, 2024

You should check your config.yml. There should be a line record_template: blabla... in it. If not, copy it over from config.yml.dist.

from bolt.

djoeybodenstaff avatar djoeybodenstaff commented on May 21, 2024

Is there a way for auto select the template you want? So 'page.twig' for pages and so on.

from bolt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.