Some issues after the new installation
Hi, HTMLY was installed in a subdirectory. Generally, everything looks fine except for some things due to them I cannot use HTMLy :-)
- It is impossible to create any content - nothing happens when I click any link in the 'Add content' section
- After I clicked Scheduled (in the Admin part or the top menu) I got a 404 error. All other links work fine.
- After I clicked Admin or Dashboard I got a string 'HTMLy'
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
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.
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
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
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
To debug it, restore the main site and htmly htaccess to the original one, start from there before adding your custom rule.
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
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]
so no idea why this script does not work as it should work
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.).
@Aido21 Please post your config\config.ini and the complete error message.
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
I'm sure this is related to server settings and not htmly itself. I will close this one. Thanks