xenocrat / chyrp-lite Goto Github PK
View Code? Open in Web Editor NEWAn ultra-lightweight blogging engine, written in PHP.
Home Page: https://chyrplite.net/
License: BSD 3-Clause "New" or "Revised" License
An ultra-lightweight blogging engine, written in PHP.
Home Page: https://chyrplite.net/
License: BSD 3-Clause "New" or "Revised" License
Hi. At the moment Chyrp doesn't support cyrillic script in tags, they just don't work.
So I just wanted to ask if there is some easy way how I could solve this myself or is this problem more complicated?)
I am getting an error on line 543 of install.php
Parse error: syntax error, unexpected ';', expecting ')' in /install.php on line 543
Line 543: $set = array($config->set("sql", $settings);
Also, why is it so much different than the 2016-03 install.php file?
Line 543: $config->set("sql", array());
The only thing I'm looking for that's not already in the module folders is a section for recent posts.
Is there is already a way to do this with the current modules? If not, I could write my own, but it does seem like this would be something people would frequently want in a blog and shouldn't be very difficult to implement. If I do end up creating my own, I'll let you know.
When adding a numeric Tag like "4212", our postal code, I get:
Notice: Undefined offset: 4212 in /home/.sites/664/site489/web/chyrp-lite/modules/tags/tags.php on line 614
Notice: Undefined offset: 4212 in /home/.sites/664/site489/web/chyrp-lite/modules/tags/tags.php on line 615
I removed the tag in the Database where there are no Quotes around the newly added tag which probably causes the error:
neumarkt: "neumarkt"
4212: 4212
First line is a working tag, second one does not work.
If you remove all permissions from a guests, chyrp-lite's root looks fine:
Access Denied
You are not allowed to view this site.
Nothing else is displayed. index.php
prevents users from locking themselves out (
Line 15 in 5a483b7
/?action=login
is easy for the admin to remember, but not for collaborators. The root should display the login form if necessary.I think that an independent login + register page (that doesn't extend default.twig) for this case would be the best way to go. It has the positive side effect of reducing chyrp-lite's fingerprint.
If the site is public, then there's no problem in keeping the login form inside the default template.
My server is running IIS (not my choice). I ran the install script just fine, but the index.php page just shows a blank page and there is no error message.
I'm guessing it's because of the htaccess file not being compatible with IIS. Is there a work around for this?
Or are there larger issues with trying to use this on a windows machine?
When I activate the default Blossom theme, I can see a separate pages menu with the pages listed that I have created. However, when I activate the Sparrow theme which I use, there is no pages menu displayed. Only menu displayed is:
Email Feed Archive Admin Controls Log out
Hello.... I just want to share a way to insert JS or HTML in the text body in EVERY POST. You can use it to insert JS advertising code or something in your post. I modify the ##themes/ThemeName/feathers/text.twig file as described below...
{% extends "content" ~ DIR ~ "post.twig" %}
{% block content %}
{% if post.title is not empty %}
<h2 class="post_title">
<a href="{{ post.url() }}" rel="bookmark" title="{{ 'Permanent link to “%s”' | translate | format(post.title | striptags | normalize | fix(true)) }}">{{ post.title|capitalize }}</a>
</h2>
{% endif %}
<section class="body{% if post.body | length > 1000 %} longform{% endif %}">
{% set text = post.body |split(' ') %}
{% if text|length < 101 %}
{% for t in text|slice(0, lenght) %} {{ t }}{% endfor %}
InsertJSorHTMLhere
{{ post.title|capitalize }} {{ text|length }}s
{% elseif (text|length > 100) and (text|length < 501) %}
{% for t in text|slice(0, 60) %} {{ t }}{% endfor %}
InsertJSorHTMLhere
{% for t in text|slice(61, lenght) %} {{ t }}{% endfor %} {{ post.title|capitalize }} {{ text|length }}s
{% elseif text|length > 500 %}
{% for t in text|slice(0, 70) %} {{ t }}{% endfor %}
InsertJSorHTMLhere
{% for t in text|slice(71, 380) %} {{ t }}{% endfor %}
InsertJSorHTMLhere
{% for t in text|slice(381, lenght) %} {{ t }}{% endfor %} {{ post.title|capitalize }} {{ text|length }}s
{% else %}
{{ text|join(' ') }}
{% endif %}</section>
{% endblock %}
Trying to create a post,
Twig Error
Unexpected "paginate" tag (expecting closing tag for the "if" tag defined near line 10) in "pages/view.twig" at line 13.
Backtrace
includes/controller/Main.php on line 797
includes/controller/Main.php on line 381
includes/class/Route.php on line 137
includes/class/Route.php on line 137
@xenocrat Do you think it's possible we can talk about putting up a support forum? I would like to see more active users and give support as well as have a Showcase topic to display existing sites. I think it will help gain recognition and build a follower base.
Thoughts?
Hello
Thank you very much for this wonderful script.
I have installed it but I can not log in and I can not register a new user.
I tried to install it more than once but without interest although the data is 100% correct but I can not access the control panel.
The error is:
Invalid authentication token.
Please consider setting a stronger password for your account.
Chyrp Lite 2017.01 introduced a SQLite compatibility problem that results in an error when a visitor attempts to view a post using a clean post view URL that contains a date/time component. This problem also affects keyword searches in the blog or admin console that attempt to filter by date/time.
Twig Error
Unknown "items" filter in "layouts/default.twig" at line 20.
Backtrace
includes/controller/Main.php on line 773
modules/homepage/homepage.php on line 36
includes/class/Trigger.php on line 83
includes/class/Trigger.php on line 59
includes/class/Route.php on line 117
includes/class/Route.php on line 117
Noticed a problem with access using Chrome on Android device.
First time logging into admin panel I get the message "Access Denied Invalid security key".
On the second time it finally lets me in, but still the Invalid security key message appears when trying to apply any changes in admin panel: settings, themes, writing a post, etc.
Other browsers seem to handle everything just fine. But still curious what might be the case and how it can be solved?
In the Blossom and Topaz themes, the "Blog" link is conditional
https://github.com/xenocrat/chyrp-lite/blob/master/themes/blossom/content/sidebar.twig#L11
https://github.com/xenocrat/chyrp-lite/blob/master/themes/topaz/content/sidebar.twig#L11
Is a matter of taste, and the themes are there to modify them, but having a disappearing element in the navigation bar felt unnatural to me (my first thought was that there was something broken). A static navigation list could be considered for the default themes.
I installed it & see no comment box, nowhere to like posts, etc.
Checked settings, modules, etc.
Do I need to add this functionality to whatever theme I'm using?
I have a tumblr account I am trying to import from. When I type in my link, I get the following message...
Content could not be retrieved from the given URL. Server returned a message: HTTP/1.1 404 Not Found
My link to my tumblr page is valid. Not sure why it's throwing this error. Any ideas?
I get the following message in the latest release, the master and develop branches
Database Error
SQLSTATE[HY000]: General error: 1 no such table: sessions
Query String
SELECT sessions.data
FROM sessions
WHERE (sessions.id = :id)
ORDER BY sessions.id
Parameters
Array
(
[:id] => s35i4vcah2s0k64qq3k9buv436
)
Backtrace
includes/class/Query.php on line 65
includes/class/SQL.php on line 195
includes/class/SQL.php on line 232
includes/class/Session.php on line 38
includes/helpers.php on line 36
includes/common.php on line 318
includes/common.php on line 318
There's no clear pattern, it can be after browsing a few pages or several, but most of the times after login in as admin and opening /admin
. Happens on pages that were already visited successfully before too, for logged in and out users. Clearing the cache solves the issue temporarily.
Cache, cookies and sessions were cleared before each fresh installation. Referes were enabled.
Hi. I just wrote a text containing the line: SELINUX=disabled
. This gets rendered as SELINUX😃isabled . Is suppose that rendering of smileys should not occur in code blocks?
Regards,
Rolf
Please help me with the above issue. I can't import/export posts, pages, groups, users. Error message 'Access Denied
Invalid security key.'
This is not exactly a chyrp lite issue, but I just don't know where else to ask.
I heard that there are no plans on adding wysiwyg editor as a module, but still I decided to try something myself.
Since I'm not a programmer I tried to insert a cdn ckeditor at least.
As far as I understand, main .js script call should go to ../admin/layouts/default.twig next to other scripts in the head.
And the CKEDITOR.replace( 'body' ); function should go after the textarea in ../admin/partials/post_fields.twig and page_fields.twig
I've been trying different ways of inserting, different wysiwyg editors and same problem - just nothing happens, textarea stays the same.
Just can't get my head around this.
I guess all this requires something more to be inserted to chyrp lite. Or maybe I just don't see something obvious.
Sorry if the question is too unrelated, but it would be just awesome if you could give any hints on this subject even though it's not that much about chyrp itself :3
Missing argument 1 for recaptcha_get_html(), called in /mysite/modules/recaptcha/recaptcha.php on line 52 and defined (/mysite/modules/recaptcha/lib/recaptchalib.php on line 106)
Backtrace
modules/recaptcha/lib/recaptchalib.php on line 106
modules/recaptcha/recaptcha.php on line 52
includes/helpers.php on line 1737
includes/controller/Main.php on line 804
includes/controller/Main.php on line 763
includes/controller/Main.php on line 432
includes/class/Route.php on line 122
includes/class/Route.php on line 122
Recently used the uploader Feather a lot to post a Gallery for every day of a really long holiday. Everytime I want to edit the Content I have to reupload the Fotos. Please change to only delete Uploads when there are new uploads or the post is updated. TIA.
The <IfModule mod_rewrite.c>
block is written twice for some reason. That said, what's the rationale behind writing and proofing it from the installation? Shipping a htaccess
file and renaming it to .htaccess
simplifies the process. Plus, the error message can instruct the user to rename it manually if the permissions fail.
I didn't notice that Javascript was disabled during the installation, which lead to a strange behaviour and errors:
Tested with the latest release and the develop branch.
A "you must enable Javascript" banner would solve the installation problem, but differentiating and validating SQLite and MySQL fields in the form would probably be a good idea.
I have attempted to register an account for myself on Chyrp Lite blog and I get the message
We have emailed you an activation link
But I never received an email in my inbox nor junk folder. Is there a config file I need to make sure email settings are setup in? I haven't had much luck finding out the reason why nothing is received.
Hello.. I love Chyrp Lite.
This is just a question. I want to use chyrplite as a guestbook function.
Anybody knows how to create simple guest front page post with Maptcha enabled?
The Guest does not need to login/register first. Maptcha is needed to be solved by Guest. Default form submission is "Denied" mode.
Thanks for any comment / ideas .
Trying to install any extensions results in an alert saying
There was an error enabling the extension.
The POST seems to be wrong (missing values):
action=enable_module&extension=highlighter&confirm=&hash=
and returns the following HTML and response
Access Denied: Invalid security key.
Access Denied: Invalid security key.
Seems to be caused by blanked referers. If I disable AJAX or enable referers, extensions are installed normally. Fresh chyrp-lite install, latest release.
Hello again!
I'm attempting to create a theme and the design keeps caching. I think it's a twig caching issue but I'm not a hundred percent sure.
For example, I removed links in the default.twig menu area and they still persist, among other small changes. Like adding a line of text or adding random inline CSS to make sure things are actually updating (these "test" additions don't show up).
I've cleared my browser cache (Chrome), and disabled caching (as far as I can tell) from my local AMPPS installation.
(also I'm very sorry for constantly showing up!)
I copied the english chyrp.pot and did my translation then I copied it to /includes/locale/de_DE/LC_MESSAGES and named it chyrp.pot. In settings you then see german as an option. But when I select it and click update the language doesnt change.
@xenocrat Here are some features I would like to see implemented.
Sorry if I am posting this in the wrong spot as I wasn't sure where else to post it. Remember we used to have the forum on the old site
Hi. I want to install chyrplite on my raspberry pi with a variant of Raspbian installed (osmc). I get an error: "Call to undefined function locale_get_default()". It seems php5-intl must be installed as a requirement. Perhaps this should be added to the documentation? I ran "apt-get install php5-intl" which made the error disappear.
I have updated the feathers to follow your format for Chyrp-Lite. I thought I had credentials once to push them to you but it keeps failing stating that I don't have permission.
I received this message right after it installed and told me to login.
The line of code is:
foreach (Config::current()->enabled_modules as $module)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Undefined property: Config::$enabled_modules (/mysite/includes/helpers.php on line 705)
Invalid argument supplied for foreach() (/mysite/includes/helpers.php on line 705)
Please consider setting a stronger password for your admin account.
Chyrp Lite has been installed
What now?
Tried installaing chyrp lite , cloned this repo. got the following error
Fatal error: require_once(): Failed opening required 'chyrp-lite/includes/lib/PasswordHash.php' (include_path='.;C:\php\pear') in chyrp-lite\install.php on line 31
Removing the following code from line 31
require_once INCLUDES_DIR."/lib/PasswordHash.php";
runs the installer
On a fresh install, /?action=feed
returns
Error
Invalid argument supplied for foreach() (/var/www/chyrp/includes/controller/Main.php on line 751)
Backtrace
includes/controller/Main.php on line 751
includes/class/Route.php on line 122
includes/class/Route.php on line 122
The relevant part of the error is
array_merge(): Argument #2 is not an array (/var/www/chyrp/includes/model/Post.php on line 230)
Backtrace
includes/model/Post.php on line 230
modules/importers/importers.php on line 296
I fixed it changing the order of the last 2 parameters in
chyrp-lite/modules/importers/importers.php
Line 286 in 09432a4
""
to array()
).
It seems like all importers have the same issue, so just to confirm: am I doing something wrong? If not, I can PR a patch right away.
I am trying to remember my password but I can't. I am also trying to figure out which type of encryption are you using so I can put in a password again for my admin account so I can log back in. Thanks.
Greetings. Excellent sms. The question - is how to change the size of output video in posts? now video in all templates is stretched into the size of the post.
I see the latest version has user self registration features. Am I dreaming?? I am in love! Great Job D!
My mysql sql_mode is TRADITIONAL mode, so when adding a new post will be wrong:
Database error: Incorrect datetime value: '0000-00-00 00:00:00' for column
I have modified my sql_mode for ANSI mode, the problem is temporarily resolved, hoping to solve the problem in the code.
I wasn't sure where to put this since this isn't a direct issue with Chyrplite so much as a question.
I'm using the Sparrow theme on a test site and noticed comments don't retain linebreaks. The comment text is printed out in a single line / paragraph.
Is there a way to have comments preserve linebreaks via CSS or some other method?
Any chance a markdown editor will be introduced in the core or as an extension?
I know the original Chyrp had an extension for it, though I can't remember the name.
I get the following messages when installing.
Notice: Only variable references should be returned by reference in /includes/class/Config.php on line 135
Notice: Only variable references should be returned by reference in /includes/class/SQL.php on line 465
Notice: Only variable references should be returned by reference in /includes/class/SQL.php on line 468
I have tried to install Chyrp Lite on Ubuntu 16.04 where PHP7 is the default install. I do, however, get this error:
session_write_close(): Session callback expects true/false return value
I hve tried to figure what is going on, but -alas- it is beyond my PHP skills.
Imported a list of posts from Chyrp.
Most-recent posts are listed at the top - this is fine.
Found a typo in the first post, edited it - leaving original timestamp. Save post.
It is now listed at the bottom (i.e. invisible). Also in admin, this post is last in the list.
Can posts be sorted automatically by timestamp descending?
Is there a route from Chyrp tp Chyrp-lite?
Due to an error in Like module's code and misconfiguration of the database indexes when installing, likes cannot be recorded by nor attributed to visitors in the guest group. The solution is to install the files from the referencing commit below.
I'm working on adding more options to the importers: custom status, timestamp, tags and category. Would you like to get it as a PR when it's done? Otherwise I'll make a dedicated fork and post the link here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.