htmly icon indicating copy to clipboard operation
htmly copied to clipboard

Some issues after the new installation

Open Aido21 opened this issue 2 years ago • 12 comments

Hi, HTMLY was installed in a subdirectory. Generally, everything looks fine except for some things due to them I cannot use HTMLy :-)

  1. It is impossible to create any content - nothing happens when I click any link in the 'Add content' section
  2. After I clicked Scheduled (in the Admin part or the top menu) I got a 404 error. All other links work fine.
  3. After I clicked Admin or Dashboard I got a string 'HTMLy'

Aido21 avatar Dec 20 '23 05:12 Aido21

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

Aido21 avatar Dec 20 '23 06:12 Aido21

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.

danpros avatar Dec 20 '23 14:12 danpros

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

Aido21 avatar Dec 20 '23 15:12 Aido21

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

danpros avatar Dec 21 '23 01:12 danpros

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

Aido21 avatar Dec 21 '23 05:12 Aido21

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

danpros avatar Dec 21 '23 07:12 danpros

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

Aido21 avatar Dec 21 '23 08:12 Aido21

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]

Aido21 avatar Dec 21 '23 08:12 Aido21

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

Aido21 avatar Dec 23 '23 05:12 Aido21

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.).

danpros avatar Dec 23 '23 11:12 danpros

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

bttrx avatar Dec 23 '23 17:12 bttrx

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

Aido21 avatar Dec 24 '23 05:12 Aido21

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

danpros avatar Jun 03 '24 23:06 danpros