Closed zenimot closed 9 years ago
Can you describe your directory structure by example and the url where this goes wrong?
Sure.
The website is iemagoo.nl Pico is in the sub-folder: blog (e.g. iemagoo.nl/blog) In the config I've added 'pages_order' and 'pages_order_by'.
Did you set correct $config['base_url']
in config.php
, like
$config['base_url'] = 'www.domain.com/blog/)';
And try to checkout apache-error/access logs. Looks like you get wrong urls (from domain.com
, but not from domain.com/blog/
).
I also used blog in subfolder and in works fine (so, it can works :D).
Yes. I did set the base url in the config file (without trailing slash).
I found the error_log and see 2 errors.
PHP Warning: file_get_contents(/home2/zenimotc/public_html/domain/blog/content/404.md): failed to open stream: No such file or directory in /home2/domain/public_html/domain/blog/lib/pico.php on line 53
PHP Fatal error: Class 'Twig_TokenParserBroker' not found in /home2/xyz/public_html/domain/blog/vendor/twig/twig/lib/Twig/Environment.php on line 1115
And did you have /home2/zenimotc/public_html/domain/blog/content/404.md
exactly?
Do you have home2
with 2 on the end? =)
And is there right permissions for web-server to access?
The 404.md is there now, but doesn't change a thing.
As for the home2, that is something the hosting company has set. That is not something I can change. (?) I would think the permissions are set right. What settings would I look for specifically?
I still find it strange I can view the index page of blog posts, but not the single blog post pages.
And I think the PHP Fatal error is the problem (and not the PHP Warning of the missing 404). PHP Fatal error: Class 'Twig_TokenParserBroker' not found in /home2/zenimotc/public_html/@dev/test/blog/vendor/twig/twig/lib/Twig/Environment.php on line 1115
2014-02-24 20:02 GMT+01:00 Christian notifications@github.com:
And did you have /home2/zenimotc/public_html/domain/blog/content/404.mdexactly? Do you have home2 with 2 on the end? =) And is there right permissions for web-server to access?
Reply to this email directly or view it on GitHubhttps://github.com/gilbitron/Pico/issues/146#issuecomment-35922027 .
www.zenimot.nl | @zenimot http://www.twitter.com/zenimot
Ou, I thought you are using a localhost... (did you tried on localhost?)
khgm, actually,
As of Twig 1.x, the token parser broker sub-system is deprecated. The following class and interface will be removed in 2.0:
- Twig_TokenParserBrokerInterface
- Twig_TokenParserBroker
I have no ideas :(
@Nimrod I think you are missing the .htaccess file in the root directory of Pico with the following information
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php [L]
</IfModule>
# Prevent file browsing
Options +FollowSymLinks
Options -Indexes
This page looks completely different than this page http://iemagoo.nl/blog/
I think one of the 404 error pages is the servers and the other is Pico...
Yup, I also thought about it.. but if you just git clone
it, you can't miss htaccess ... but all may be :)
Also, you see main page, but dont's see one post.. it's also looks like htaccess problem
@Jecomire Right but, if you were to use git clone
to your desktop and then ftp the finished product to a server via "window" to "window".. might not copy the hidden files. Use Filezilla to verify that the .htaccess is in the directory.
The .htaccess seems to do the trick!
Thank you all for helping.
2014-02-26 23:14 GMT+01:00 enrique3 notifications@github.com:
@Jecomire https://github.com/Jecomire Right but, if you were to use git clone to your desktop and then ftp the finished product to a server via "window" to "window".. might not copy the hidden files. Use Filezillahttps://filezilla-project.org/to verify that the .htaccess is in the directory.
Reply to this email directly or view it on GitHubhttps://github.com/gilbitron/Pico/issues/146#issuecomment-36184347 .
www.zenimot.nl | @zenimot http://www.twitter.com/zenimot
UPDATE: Problem solved In Apache httpd.conf:
Options all
AllowOverride all
Order allow,deny
Allow from all
'AllowOverride none' -> 'AllowOverride all'
Hi Pico Team,
I am a huge fan, but now I need help.
My local site has the same problem:
I double check the htaccess file, the permission, and missing file. I try everything, but it still don't work: I have /content/about/index.md file, but when I access url: siteurl/about/index, it gets 404.
apache_access_log: 127.0.0.1 - - [07/Apr/2014:18:22:25 +0800] "GET /about/index HTTP/1.1" 404 209
apache_error_log: [Mon Apr 07 18:22:25 2014] [error] [client 127.0.0.1] File does not exist: /Users/allengaller/Sites/spotlight-site/web/server/about
FYI: My PC side of local site works just fine. And my Linode online site works fine too. Both using Pico!
Allen
I don't know why my local pages didn't work either. Kind of a bummer. So I just coded my site live in a different directory
Can you give us your web server error log? On Apr 14, 2014 5:40 AM, "Adrian Valenz" notifications@github.com wrote:
I don't know why my local pages didn't work either. Kind of a bummer. So I just coded my site live in a different directory
— Reply to this email directly or view it on GitHubhttps://github.com/picocms/Pico/issues/146#issuecomment-40352855 .
Hey @Nimrod @allengaller I ran into a similar error message while trying to use Twig (without cms, just by itself) Did changing the .htaccess helped with twig error?
The .htaccess got my blog working. Don’t know if it was a Twig error. -- Tom Oude Egberink Sent with Airmail
Op 22 april 2014 at 10:25:05, Maciej Jankowski (notifications@github.com) schreef:
Hey @Nimrod @allengaller I ran into a similar error message while trying to use Twig. Did changing the .htaccess helped with twig error?
— Reply to this email directly or view it on GitHub.
I've changed the index.html in my theme (as described in the Docs). I've added the date tag in the .md files in the content folder. When I go to the url (e.g. www.domain.com/blog/) I get an overview of the posts, but when I click a link to go to the article page I get a 404.
Anybody got an idea what's wrong?