S05e02 - Info pages extensions QUESTIONS/SUPPORT
s05e02 - Info Page Extensions
Current @ 1.0.8.6
PHP 7.4.22
Just installed the Info Page Extensions that adds WYSIWYG Editor, Folders and Authors and getting these errors
Notice: Constant PAGE_AUTHOR already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/author.php on line 12
Notice: Constant PAGE_AUTHOR_CONTAINER already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/author.php on line 14
Notice: Constant PAGE_AUTHOR_CHOOSE already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/author.php on line 16
Notice: Constant PAGE_AUTHOR_HELP already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/author.php on line 17
Notice: Constant AUTHORS_ARRAY already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/author.php on line 21
Notice: Constant PAGE_AUTHOR already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/author.php on line 12
Notice: Constant PAGE_AUTHOR_CONTAINER already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/author.php on line 14
Notice: Constant PAGE_AUTHOR_CHOOSE already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/author.php on line 16
Notice: Constant PAGE_AUTHOR_HELP already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/author.php on line 17
Notice: Constant AUTHORS_ARRAY already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/author.php on line 21
Notice: Constant PAGE_FOLDER already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/folder.php on line 12
Notice: Constant PAGE_FOLDER_CONTAINER already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/folder.php on line 14
Notice: Constant PAGE_FOLDER_CHOOSE already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/folder.php on line 16
Notice: Constant PAGE_FOLDER_HELP already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/folder.php on line 17
Notice: Constant FOLDERS_ARRAY already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/folder.php on line 19
Notice: Constant PAGE_FOLDER already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/folder.php on line 12
Notice: Constant PAGE_FOLDER_CONTAINER already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/folder.php on line 14
Notice: Constant PAGE_FOLDER_CHOOSE already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/folder.php on line 16
Notice: Constant PAGE_FOLDER_HELP already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/folder.php on line 17
Notice: Constant FOLDERS_ARRAY already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/folder.php on line 19
PHP 7.4.22
Just installed the Info Page Extensions that adds WYSIWYG Editor, Folders and Authors and getting these errors
Notice: Constant PAGE_AUTHOR already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/author.php on line 12
Notice: Constant PAGE_AUTHOR_CONTAINER already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/author.php on line 14
Notice: Constant PAGE_AUTHOR_CHOOSE already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/author.php on line 16
Notice: Constant PAGE_AUTHOR_HELP already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/author.php on line 17
Notice: Constant AUTHORS_ARRAY already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/author.php on line 21
Notice: Constant PAGE_AUTHOR already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/author.php on line 12
Notice: Constant PAGE_AUTHOR_CONTAINER already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/author.php on line 14
Notice: Constant PAGE_AUTHOR_CHOOSE already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/author.php on line 16
Notice: Constant PAGE_AUTHOR_HELP already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/author.php on line 17
Notice: Constant AUTHORS_ARRAY already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/author.php on line 21
Notice: Constant PAGE_FOLDER already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/folder.php on line 12
Notice: Constant PAGE_FOLDER_CONTAINER already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/folder.php on line 14
Notice: Constant PAGE_FOLDER_CHOOSE already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/folder.php on line 16
Notice: Constant PAGE_FOLDER_HELP already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/folder.php on line 17
Notice: Constant FOLDERS_ARRAY already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/folder.php on line 19
Notice: Constant PAGE_FOLDER already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/folder.php on line 12
Notice: Constant PAGE_FOLDER_CONTAINER already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/folder.php on line 14
Notice: Constant PAGE_FOLDER_CHOOSE already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/folder.php on line 16
Notice: Constant PAGE_FOLDER_HELP already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/folder.php on line 17
Notice: Constant FOLDERS_ARRAY already defined in /home/THEBIGUGLY/public_html/includes/languages/english/hooks/admin/info_pages/folder.php on line 19
Tags:
-
ecartz
- Core Team
- Posts: 3084
- Joined: Tue Nov 05, 2019 6:02 pm
- Phoenix Version:
- Has thanked: 4 times
- Been thanked: 208 times
Re: s05e02 - Info Page Exttensions
In the method that looks like delete or comment out the middle lineYou probably have to do that in more than one file.
Code: Select all
function load_lang() {
require_once language::map_to_translation('hooks/admin/info_pages/author.php');
}Code: Select all
function load_lang() {
}-
LeeFoster
- Contributor
- Posts: 263
- Joined: Sun Feb 28, 2021 9:41 pm
- Phoenix Version: v1.0.8.20
- Has thanked: 1 time
- Been thanked: 5 times
Re: s05e02 - Info Page Extensions
Different issue but same add-on.
Does anyone else have issues with adding the author/folder when creating the page? I have to go back in and add it as an edit.
Does anyone else have issues with adding the author/folder when creating the page? I have to go back in and add it as an edit.
Re: s05e02 - Info Page Exttensions
@ecartz Thank you, much appreciated.ecartz wrote: ↑Wed Oct 20, 2021 10:19 pm In the method that looks likedelete or comment out the middle lineCode: Select all
function load_lang() { require_once language::map_to_translation('hooks/admin/info_pages/author.php'); }You probably have to do that in more than one file.Code: Select all
function load_lang() { }
In the /includes/hooks/admin/info_pages found the code below and commented as shown and works perfect for both author and folder files
Code: Select all
function load_lang() {
global $language;
#require(DIR_FS_CATALOG . 'includes/languages/' . $language . '/hooks/admin/info_pages/author.php');
}Re: s05e02 - Info Page Extensions
Thanks, Just added an article and yes had to edit to get author and folder to save.
Also having issues when editing the document text that changes aren't being saved. Edited the db table and the changes don't show. Is there a way to have the wysiwyg editor to refresh
Something like adding a metatag
Code: Select all
<meta http-equiv="refresh" content="500" >Code: Select all
<meta http-equiv="refresh" content="600; url=PageName.php">-
LeeFoster
- Contributor
- Posts: 263
- Joined: Sun Feb 28, 2021 9:41 pm
- Phoenix Version: v1.0.8.20
- Has thanked: 1 time
- Been thanked: 5 times
Re: s05e02 - Info Page Extensions
I just managed to find and fix this issue. the hook call in info_pages.php is
Code: Select all
$OSCOM_Hooks->call('info_pages', 'addNewAction');Code: Select all
function listen_addnewAction() {-
Omar_one
- Senior Contributor
- Posts: 676
- Joined: Fri Oct 25, 2019 5:06 pm
- Phoenix Version: v1.0.8.16
- Has thanked: 100 times
- Been thanked: 56 times
Re: s05e02 - Info Page Extensions
@ecartz
version 1.0.8.8
visiting admin-> info pages and chose created page (which haven't connected to folder or Authors) will give an error
version 1.0.8.8
visiting admin-> info pages and chose created page (which haven't connected to folder or Authors) will give an error
Code: Select all
Notice: Undefined offset: 0 in C:\xampp\htdocs\test\includes\hooks\admin\info_pages\author.php on line 18
Notice: Undefined offset: 0 in C:\xampp\htdocs\test\includes\hooks\admin\info_pages\folder.php on line 18-
admin
- Contributor
- Posts: 217
- Joined: Wed Oct 30, 2019 1:34 pm
- Phoenix Version:
- Has thanked: 20 times
- Been thanked: 22 times
S05e02 - Info pages extensions QUESTIONS/SUPPORT
Addon:
Extensions for the Info Pages system
Download:
viewtopic.php?f=28&t=1072
--
Questions / Comments / Concerns
Extensions for the Info Pages system
Download:
viewtopic.php?f=28&t=1072
--
Questions / Comments / Concerns
-
lecarlb
- Contributor
- Posts: 316
- Joined: Mon Oct 26, 2020 5:26 pm
- Phoenix Version:
- Has thanked: 48 times
- Been thanked: 9 times
Re: S05e02 - Info pages extensions
Is there a reason the wysiwyg editor doesn't accept changes? It's on version 1.0.8.20 store.
I make edits using the code </> section but no changes are accepted. Also, the code is shifted around.
I make edits using the code </> section but no changes are accepted. Also, the code is shifted around.
-
heatherbell
- Senior Contributor
- Posts: 2540
- Joined: Mon Oct 07, 2019 4:39 am
- Phoenix Version:
- Has thanked: 35 times
- Been thanked: 243 times
Re: S05e02 - Info pages extensions
After making changes using Code View, </>, click it again to go back to normal view and then Save - that is the way that plug-in WYSIWIG works.
Personally not a fan of any plug-in WYSIWIG editors because they can introduce code anomalies but they are what they are.