xExtension-NewsAssistant icon indicating copy to clipboard operation
xExtension-NewsAssistant copied to clipboard

gen.layout.title is not a valid key

Open Whichbfj28 opened this issue 2 years ago • 29 comments

[Tue, 12 Sep 2023 09:56:11 +0000] [error] --- Could not fetch available extension from GitHub [Tue, 12 Sep 2023 09:56:12 +0000] [error] --- Could not fetch available extension from GitHub [Tue, 12 Sep 2023 09:56:13 +0000] [error] --- Could not fetch available extension from GitHub [Tue, 12 Sep 2023 09:56:14 +0000] [error] --- Could not fetch available extension from GitHub [Tue, 12 Sep 2023 09:56:39 +0000] [debug] --- gen.layout.title is not a valid key [Tue, 12 Sep 2023 09:56:39 +0000] [debug] --- gen.action.set_read is not a valid key [Tue, 12 Sep 2023 09:58:35 +0000] [debug] --- gen.layout.title is not a valid key [Tue, 12 Sep 2023 09:58:35 +0000] [debug] --- gen.action.set_read is not a valid key

image

Whichbfj28 avatar Sep 12 '23 09:09 Whichbfj28

How do you install this extension? this is the tutorial. Could you show me the path of your extension?

reply2future avatar Sep 12 '23 10:09 reply2future

image

FreshRSS 1.20.2

Whichbfj28 avatar Sep 13 '23 03:09 Whichbfj28

  1. Could you show me the content of /home/wwwroot/..../xExtension-NewsAssistant-main/i18n/gen.php? It should be like this, and the value gen.layout.title is from here.
<?php

return array(
	'action' => array(
		'submit' => 'Submit',
		'cancel' => 'Cancel',
		'back' => 'Back',
		'set_read' => 'Read',
	),
	'layout' => array(
		'title' => 'The summary of Today'
	),
	'holder' => array(
		'empty_content' => 'No news is a good news.'
	)
);
  1. Have you already configured the extension? It looks like init function is not called. image

reply2future avatar Sep 13 '23 11:09 reply2future

Could not fetch available extension from GitHub

It looks like you server could not access the website https://raw.githubusercontent.com/FreshRSS/Extensions/master/extensions.json, so you could not open the configuration page of extensions, and it should be blank page.

reply2future avatar Sep 13 '23 15:09 reply2future

Could not fetch available extension from GitHub

It looks like you server could not access the website https://raw.githubusercontent.com/FreshRSS/Extensions/master/extensions.json, so you could not open the configuration page of extensions, and it should be blank page.

I have already solved this problem. But it still cannot be used. Here is a screenshot

image image

Whichbfj28 avatar Sep 14 '23 01:09 Whichbfj28

Modified 2 places

  1. Modify ext. field. prompt (?) to 总结一下,因为你是新闻编辑
  2. ['title '=>' The summary of Today 'is modified] to [' title '=>' 总结如下'] No other modifications have been made

Whichbfj28 avatar Sep 14 '23 01:09 Whichbfj28

Could not fetch available extension from GitHub It looks like you server could not access the website https://raw.githubusercontent.com/FreshRSS/Extensions/master/extensions.json, so you could not open the configuration page of extensions, and it should be blank page.

I have already solved this problem. But it still cannot be used. Here is a screenshot

image image

It must be the problem that there is not any language of i18n to match zh. I would check it later, but PR is welcome :).

reply2future avatar Sep 14 '23 01:09 reply2future

Could not fetch available extension from GitHub It looks like you server could not access the website https://raw.githubusercontent.com/FreshRSS/Extensions/master/extensions.json, so you could not open the configuration page of extensions, and it should be blank page.

I have already solved this problem. But it still cannot be used. Here is a screenshot image image

It must be the problem that there is not any language of i18n to match zh. I would check it later, but PR is welcome :).

OK.thank

Whichbfj28 avatar Sep 14 '23 01:09 Whichbfj28

Please update the version to 0.6 (just like how to install), and the display text would be correct.

reply2future avatar Sep 14 '23 08:09 reply2future

image

image

image

1、It doesn't work 2、No log errors were found. 3. I will first delete the old version of the xExtension NewsAssistant main folder in the plugin 4. Then upload the new version 0.6 xExtension NewsAssistant main file to it 5. Where the UI was discovered. This includes fields such as openai, Max Tokens, Temperature, fields sent to OpenAI, number of articles read at once, Prompt, and model [automatically using version 0.5 configuration]. I don't know if it has an impact

Whichbfj28 avatar Sep 15 '23 01:09 Whichbfj28

image

Whichbfj28 avatar Sep 15 '23 01:09 Whichbfj28

image After the API is created.Still not working

Whichbfj28 avatar Sep 15 '23 01:09 Whichbfj28

The problem should be the usage of this extension, it's designed to summary a category feeds, like this: image

It may be not friendly and non-straight what I would improve the user experience.

If this is not the problem, you should take a screen capture or record to show you steps to reproduct the problem.

reply2future avatar Sep 15 '23 01:09 reply2future

12

Whichbfj28 avatar Sep 15 '23 02:09 Whichbfj28

You should set the debug status and share the log file to see what happens.

reply2future avatar Sep 15 '23 12:09 reply2future

12 12

Could you show me the query param of the URL? like this:

  1. <you_domain>/i/?c=assistant&a=summary&cat_id=6&state=2
  2. <you_domain>/i/?c=assistant&a=stream&cat_id=6&state=2

It should read the articles fail.

reply2future avatar Sep 15 '23 13:09 reply2future

https://***/p/i/?c=assistant&a=summary&cat_id=7&state=2

Whichbfj28 avatar Sep 16 '23 01:09 Whichbfj28

You should set the debug status and share the log file to see what happens.

No log errors were found。it was empty.

image

Whichbfj28 avatar Sep 16 '23 01:09 Whichbfj28

I am using the PostgreSQL database。Because there is too much content. The efficiency of using MySQL is very low

Whichbfj28 avatar Sep 16 '23 01:09 Whichbfj28

Clicking the Set as Read button does not take effect

Whichbfj28 avatar Sep 16 '23 02:09 Whichbfj28

  1. There are log files in the /home/www/....../freshrss/data/log directory or /home/www/...../freshrss/data/www/freshrss/data/users/<you username>/log.txt
  2. It should have nothing to do with the database
  3. Set as Read button would work when fetching the articles like that: image

reply2future avatar Sep 16 '23 02:09 reply2future

image it was empty.

Whichbfj28 avatar Sep 16 '23 09:09 Whichbfj28

Found something. I found that the configuration of News Assistant is written in data/config.php But other plugins seem to not write the configuration here.

Whichbfj28 avatar Sep 16 '23 09:09 Whichbfj28

  1. First of all you should check it set the development status in your service on your data/config.php, then check the nginx or apache log which depends on your server, somethings like that: image

  2. I make this extension to be system level extension, so the configuration would be written in data/config.php

Reference

https://freshrss.github.io/FreshRSS/en/admins/logs_and_errors.html

reply2future avatar Sep 16 '23 10:09 reply2future

  1. First of all you should check it set the development status in your service on your data/config.php, then check the nginx or apache log which depends on your server, somethings like that:
image 2. I make this extension to be system level extension, so the configuration would be written in `data/config.php`

Reference

https://freshrss.github.io/FreshRSS/en/admins/logs_and_errors.html

121.8.. - - [18/Sep/2023:09:30:39 +0800] "GET /p/i/?c=assistant&a=summary&cat_id=7&state=2 HTTP/2.0" 200 2756 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 121.8.. - - [18/Sep/2023:09:30:39 +0800] "GET /p/ext.php?f=xExtension-NewsAssistant-main%2Fstatic%2Fstyle.css&t=css&1694678627 HTTP/2.0" 200 431 "https://f..com/p/i/?c=assistant&a=summary&cat_id=7&state=2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 121.8..* - - [18/Sep/2023:09:30:39 +0800] "GET /p/ext.php?f=xExtension-NewsAssistant-main%2Fstatic%2Fscript.js&t=js&1694678627 HTTP/2.0" 200 980 "https://f..com/p/i/?c=assistant&a=summary&cat_id=7&state=2" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36" 121.8..* - - [18/Sep/2023:09:30:40 +0800] "GET /i/?c=assistant&a=stream&cat_id=7&state=2 HTTP/2.0" 404 548 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/109.0.0.0 Safari/537.36"

Whichbfj28 avatar Sep 18 '23 01:09 Whichbfj28

My webpage address is: https://.com/p/i/?c=assistant&a=summary&cat_id=7&state=2
no https://
.com/i/?c=assistant&a=summary&cat_id=7&state=2

Attention P

Whichbfj28 avatar Sep 18 '23 01:09 Whichbfj28

My webpage address is: https://.com/p/i/?c=assistant&a=summary&cat_id=7&state=2 no https://.com/i/?c=assistant&a=summary&cat_id=7&state=2

Attention P

this new version would solve your problem.

reply2future avatar Sep 18 '23 15:09 reply2future

I experience (what I think is) this issue too:

Knipsel

TeunvandeBerg avatar Oct 28 '23 12:10 TeunvandeBerg

I experience (what I think is) this issue too:

Knipsel

which version do you use? what are the error logs?

reply2future avatar Mar 23 '24 16:03 reply2future