Giter VIP home page Giter VIP logo

Comments (13)

Aido21 avatar Aido21 commented on July 24, 2024

I'm not sure if this is relevant, but every time I click on the link to add a post I see this in the log:
[Wed Dec 20 14:00:47.214322 2023] [fcgid:warn] [pid 27459] [client ** mod_fcgid: stderr: PHP Notice: Undefined index: type in /home//public_html/blog/system/htmly. php on line 409, referer: https://*/blog/admin/content

from htmly.

danpros avatar danpros commented on July 24, 2024

Hello, seems the query parameter ignored in your server (?type=post). Enable the mod_rewrite, try to modify the htaccess file. Eg. uncomment the RewriteBase / or use:

RewriteEngine On
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

In localhost I use xampp and no need any extra config except enabling the module needed (zip, intl etc.) For server, I use virtualmin and no need extra config either.

from htmly.

Aido21 avatar Aido21 commented on July 24, 2024

Thanks, it helped with the links and 'Scheduled' and 'Posts' items.
but
Admin or Dashboard returns the 'HTMLy' string

NB
I get an 'HTMLy' string if I have DirectoryIndex index.php admin.php in my .htaccess
If I keep DirectoryIndex index.php onlΠ½ I get a Forbidden message

from htmly.

danpros avatar danpros commented on July 24, 2024

The problems is your vhost config. In apache 2.4 should:

AllowOverride All
Require all granted

and 2.2:

Order allow,deny
Allow from all

from htmly.

Aido21 avatar Aido21 commented on July 24, 2024

These lines exist in my config. It is running under Virtualmin.

You know I think the reason for the issue is that I installed HTMLy in a subdirectory
So I have a public_html folder with the main site and .htaccess in it.
And a subfolder /blog where I installed HTMLy. This folder has its own .htaccess

I have attached both .htaccess that you can have a look. I will very much appreciate any help.
htaccess blog subfolder.txt
htaccess root.txt

from htmly.

danpros avatar danpros commented on July 24, 2024

To debug it, restore the main site and htmly htaccess to the original one, start from there before adding your custom rule.

from htmly.

Aido21 avatar Aido21 commented on July 24, 2024

Well. I disabled the root htaccess file but the issue is still here.
mysite/blog/admin/posts, mysite/blog/admin/pages, mysite/blog/admin/draft, etc can be opened correctly but
only mysite/blog/admin generates an error – Forbidden

from htmly.

Aido21 avatar Aido21 commented on July 24, 2024

This is my current htaccess in the blog folder

RewriteEngine On
RewriteBase /blog/

RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /blog/index.php [L]

from htmly.

Aido21 avatar Aido21 commented on July 24, 2024

so no idea why this script does not work as it should work

from htmly.

danpros avatar danpros commented on July 24, 2024

Yes I have no idea actually, I use the default htaccess and install it in sub folder and it work as it should be. It's a good idea to review how you set up your server (the virtual host etc.).

from htmly.

bttrx avatar bttrx commented on July 24, 2024

@Aido21 Please post your config\config.ini and the complete error message.

from htmly.

Aido21 avatar Aido21 commented on July 24, 2024

Hi @bttrx
Here it is
config.ini.txt

There is no error messages. Just Forbidden 403 error for mysite/blog/admin.
The same time mysite/blog/admin/posts, mysite/blog/admin/pages, mysite/blog/admin/draft, etc can be opened correctly

from htmly.

danpros avatar danpros commented on July 24, 2024

I'm sure this is related to server settings and not htmly itself. I will close this one. Thanks

from htmly.

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.