Page 1 of 2

s05e02 - Info Page Extensions

Posted: Wed Oct 20, 2021 8:27 pm
by Dnj1964
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

Re: s05e02 - Info Page Exttensions

Posted: Wed Oct 20, 2021 10:19 pm
by ecartz
In the method that looks like

Code: Select all

  function load_lang() {
    require_once language::map_to_translation('hooks/admin/info_pages/author.php');
  }
delete or comment out the middle line

Code: Select all

  function load_lang() {
  }
You probably have to do that in more than one file.

Re: s05e02 - Info Page Extensions

Posted: Thu Oct 21, 2021 7:09 am
by LeeFoster
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.

Re: s05e02 - Info Page Exttensions

Posted: Thu Oct 21, 2021 4:57 pm
by Dnj1964
ecartz wrote: Wed Oct 20, 2021 10:19 pm In the method that looks like

Code: Select all

  function load_lang() {
    require_once language::map_to_translation('hooks/admin/info_pages/author.php');
  }
delete or comment out the middle line

Code: Select all

  function load_lang() {
  }
You probably have to do that in more than one file.
@ecartz Thank you, much appreciated.

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

Posted: Thu Oct 21, 2021 7:54 pm
by Dnj1964
LeeFoster wrote: Thu Oct 21, 2021 7:09 am 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.
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" >
or

Code: Select all

<meta http-equiv="refresh" content="600; url=PageName.php">

Re: s05e02 - Info Page Extensions

Posted: Fri Oct 22, 2021 7:50 am
by LeeFoster
Dnj1964 wrote: Thu Oct 21, 2021 7:54 pm
LeeFoster wrote: Thu Oct 21, 2021 7:09 am 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.
Thanks, Just added an article and yes had to edit to get author and folder to save.
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');
And the listener is

Code: Select all

function listen_addnewAction() {
The 'N' in the call is uppercase. I changed these to both be uppercase and it fixed my issue.

Re: s05e02 - Info Page Extensions

Posted: Fri Dec 03, 2021 10:01 am
by Omar_one
@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

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

S05e02 - Info pages extensions QUESTIONS/SUPPORT

Posted: Wed Jan 05, 2022 7:15 am
by admin
Addon:
Extensions for the Info Pages system

Download:
viewtopic.php?f=28&t=1072

--

Questions / Comments / Concerns

Re: S05e02 - Info pages extensions

Posted: Thu Aug 03, 2023 4:29 pm
by lecarlb
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.

Re: S05e02 - Info pages extensions

Posted: Sat Dec 16, 2023 6:17 am
by heatherbell
lecarlb wrote: Thu Aug 03, 2023 4:29 pm I make edits using the code </> section but no changes are accepted. Also, the code is shifted around.
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.