S05e02 - Info pages extensions QUESTIONS/SUPPORT

Open to all! Ask other shopowners for help.
Dnj1964
Member
Posts: 54
Joined: Fri Nov 06, 2020 8:27 pm
Phoenix Version:
Has thanked: 8 times

s05e02 - Info Page Extensions

Post 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

Tags:


Join The Code Co-op to get access to your library in the Code Co-op Forum
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

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

Post 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.
Dnj1964
Member
Posts: 54
Joined: Fri Nov 06, 2020 8:27 pm
Phoenix Version:
Has thanked: 8 times

Re: s05e02 - Info Page Exttensions

Post 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');
  }
Dnj1964
Member
Posts: 54
Joined: Fri Nov 06, 2020 8:27 pm
Phoenix Version:
Has thanked: 8 times

Re: s05e02 - Info Page Extensions

Post 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">
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

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

Post 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
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

Post by admin »

Addon:
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

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

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


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply