To use this website completely, it is necessary to store cookies on your computer.
 

* Navigator

Expand - Collapse

* Recent Topics

by feline, [2017 May 23, 06:07:59]

* Statistic

  • *Total Members: 4452
  • *Latest: wintstar

  • *Total Posts: 16688
  • *Total Topics: 2558
  • *Online Today: 11
  • *Most Online: 292
(2016 November 12, 09:37:31)
  • *Users: 1
  • *Guests: 0
  • *Spiders: 3
  • *Total: 4

Updating PortaMx from version 1.51

Started by FragaCampos, 2016 August 24, 06:27:36

previous topic - next topic

0 Members and 0 Guests are viewing this topic.

FragaCampos

2016 August 24, 06:27:36
Hello there.

My PortaMx portal is still on version 1.51 and I would like to know what's the correct way of update it to 1.54.
Should I install version 1.52 first, then 1.53 and 1.54 at the end? Or can I upgrade to 1.54 at once?


feline

#1
2016 August 24, 14:24:24
Now that wont work.
Best way to install the latest release:
1. Uninstall Portamx (make a backup of all changes files before and do not check the remove tables)
2. Install latest release.
Many are stubborn in relation to the path, a few in relation to the target.

FragaCampos

#2
2016 August 24, 22:40:26
Thank you, feline.
I'll try to do that.

FragaCampos

#3
2016 August 26, 22:03:16
Ok, I've installed version 1.54 and everything went fine and without problems.

Still, I'm getting some errors in the forum's log.
What can it be the cause?

Code Select
8: Undefined index: profile
File: Sources/PortaMx/PortaMxIntegrate.php


Code Select
2: array_merge(): Argument #1 is not an array
File: Sources/PortaMx/PortaMxIntegrate.php


feline

#4
2016 August 28, 07:58:54
on which line the error occurs?
you have other mods installed?
you use the default theme?
Many are stubborn in relation to the path, a few in relation to the target.

FragaCampos

#5
2016 August 29, 00:45:55
The first one is in line 337.
The second one is in line 339.

Curiously, this only happens with one user, to which I gave admin permissions over the portal.
I'm using Citiez template, but this didn't occur before the update.

I also use a lot of mods, more than 40, to be more precise.

feline

#6
2016 August 29, 12:05:07
This seems like that you don't have a Profile button in your menu.
This will stay normaly after the Moderate button and before My Messages.

Please check that ...
Many are stubborn in relation to the path, a few in relation to the target.

FragaCampos

#7
2016 August 29, 23:20:08
I do have a profile button in my forum, of course.
As I stated before, this just affects the moderator, not the admin and all the other users. I removed the moderator from the "Membergroups that can Administrate the entire Portal" panel, and the errors stopped, so it must be a PortaMX problem.

feline

#8
2016 August 31, 23:45:25
Please attach the file Subs.php (zipped) from the Source folder, so I can take a look at your problem ...
Many are stubborn in relation to the path, a few in relation to the target.

FragaCampos

#9
2016 September 01, 02:56:06
Ok, thank you for looking into this.

Here goes the zipped file.

feline

#10
2016 September 01, 17:57:49
Interesting thing .. it must be a interference with a other mod .. so I can't say what is fail.
It seems like the Profile[sub_buttons] are not exists at the time, the portal will add the menuparts in the profile.
This function is called via the hook integrate_menu_buttons and it seems like that at this time the menu structure is not exists or not complete.
Please check if other mods use this hook ..

On thing what you can do ..
change the follow lines in the PortaMxIntegrate.php at line  ~336

from:
Code Select
$menudata['profile']['sub_buttons'] = array_merge(
$menudata['profile']['sub_buttons'],
$addmenu
);


to:
Code Select
$menudata['profile']['sub_buttons'] = array_merge(
$addmenu,
$menudata['profile']['sub_buttons']
);


Also you can check the menustructure at this point, by add follow after the above code:
Code Select
log_error(PortaMx_Printvar($menudata, 'MenuData'), true);


Test that with a user they have portal rights ..

in a other browser login as admin and you can look at the error log to see the result form this test.
It's a array with all menu data like this:
Code Select

<strong>MenuData</strong> = array(
   'home' => array(
      'title' => 'Home',
      'href' => 'http://portamx/pmxdev/index.php',
      'show' => true,
      'sub_buttons' => array(
      ),
      'is_last' => false,
      'active_button' => false,
   ),
   'community' => array(
      'title' => 'Community',
      'href' => 'http://portamx/pmxdev/index.php?action=community',
      'active_button' => false,
      'sub_buttons' => array(
      ),
   ),
   'download' => array(
      'title' => 'Download',
      'href' => 'http://portamx/pmxdev/index.php?spage=seite',
      'active_button' => false,
      'sub_buttons' => array(
      ),
   ),
   'pmxblog' => array(
      'title' => 'Blogs <img src="http://portamx/pmxdev/Themes/default/images/PmxBlog/comment_new.gif" alt="" style="margin-bottom:-2px;" />',
      'href' => 'http://portamx/pmxdev/index.php?action=pmxblog;sa=unread',
      'show' => true,
      'sub_buttons' => array(
         'showall' => array(
            'title' => 'Show all Blogs',
            'href' => 'http://portamx/pmxdev/index.php?action=pmxblog;sa=list',
            'show' => true,
         ),
         'showunread' => array(
            'title' => 'Unread Blogs',
            'href' => 'http://portamx/pmxdev/index.php?action=pmxblog;sa=unread',
            'show' => true,
         ),
         'showtracked' => array(
            'title' => 'Tracked Blogs',
            'href' => 'http://portamx/pmxdev/index.php?action=pmxblog;sa=tracked',
            'show' => true,
         ),
      ),
      'active_button' => false,
   ),
   'help' => array(
      'title' => 'Help',
      'href' => 'http://portamx/pmxdev/index.php?action=help',
      'show' => true,
      'sub_buttons' => array(
      ),
      'active_button' => false,
   ),
   'search' => array(
      'title' => 'Search',
      'href' => 'http://portamx/pmxdev/index.php?action=search',
      'show' => true,
      'sub_buttons' => array(
      ),
      'active_button' => false,
   ),
   'profile' => array(
      'title' => 'Profile',
      'href' => 'http://portamx/pmxdev/index.php?action=profile',
      'show' => true,
      'sub_buttons' => array(
         'portamx' => array(
            'title' => 'Your PortaMx',
            'href' => '#',
            'show' => true,
            'sub_buttons' => array(
               'pmxcenter' => array(
                  'title' => 'PortaMx Admin Center',
                  'href' => 'http://portamx/pmxdev/index.php?action=portamx;area=pmx_center',
                  'show' => true,
               ),
               'pmxsettings' => array(
                  'title' => 'Settings Manager',
                  'href' => 'http://portamx/pmxdev/index.php?action=portamx;area=pmx_settings',
                  'show' => true,
               ),
               'pmxblocks' => array(
                  'title' => 'Block Manager',
                  'href' => 'http://portamx/pmxdev/index.php?action=portamx;area=pmx_blocks',
                  'show' => true,
               ),
               'pmxcategories' => array(
                  'title' => 'Category Manager',
                  'href' => 'http://portamx/pmxdev/index.php?action=portamx;area=pmx_categories',
                  'show' => true,
               ),
               'pmxarticles' => array(
                  'title' => 'Article Manager',
                  'href' => 'http://portamx/pmxdev/index.php?action=portamx;area=pmx_articles',
                  'show' => true,
               ),
               'pmxsefengine' => array(
                  'title' => 'SEF Manager',
                  'href' => 'http://portamx/pmxdev/index.php?action=portamx;area=pmx_sefengine',
                  'show' => true,
               ),
            ),
         ),
         'summary' => array(
            'title' => 'Summary',
            'href' => 'http://portamx/pmxdev/index.php?action=profile',
            'show' => true,
         ),
         'account' => array(
            'title' => 'Account Settings',
            'href' => 'http://portamx/pmxdev/index.php?action=profile;area=account',
            'show' => true,
         ),
         'profile' => array(
            'title' => 'Forum Profile',
            'href' => 'http://portamx/pmxdev/index.php?action=profile;area=forumprofile',
            'show' => true,
            'is_last' => true,
         ),
      ),
      'active_button' => false,
   ),
   'pm' => array(
      'title' => 'My Messages',
      'href' => 'http://portamx/pmxdev/index.php?action=pm',
      'show' => true,
      'sub_buttons' => array(
         'pm_read' => array(
            'title' => 'Read your messages',
            'href' => 'http://portamx/pmxdev/index.php?action=pm',
            'show' => true,
         ),
         'pm_send' => array(
            'title' => 'Send a message',
            'href' => 'http://portamx/pmxdev/index.php?action=pm;sa=send',
            'show' => true,
            'is_last' => true,
         ),
      ),
      'active_button' => false,
   ),
   'calendar' => array(
      'title' => 'Calendar',
      'href' => 'http://portamx/pmxdev/index.php?action=calendar',
      'show' => true,
      'sub_buttons' => array(
      ),
      'active_button' => false,
   ),
   'mlist' => array(
      'title' => 'Members',
      'href' => 'http://portamx/pmxdev/index.php?action=mlist',
      'show' => true,
      'sub_buttons' => array(
         'mlist_view' => array(
            'title' => 'View the memberlist',
            'href' => 'http://portamx/pmxdev/index.php?action=mlist',
            'show' => true,
         ),
         'mlist_search' => array(
            'title' => 'Search For Members',
            'href' => 'http://portamx/pmxdev/index.php?action=mlist;sa=search',
            'show' => true,
            'is_last' => true,
         ),
      ),
      'active_button' => false,
   ),
   'logout' => array(
      'title' => 'Logout',
      'href' => 'http://portamx/pmxdev/logout/%1//$s=%2$s',
      'show' => true,
      'sub_buttons' => array(
      ),
      'is_last' => true,
      'active_button' => false,
   ),
)


Hope this helps




Many are stubborn in relation to the path, a few in relation to the target.

FragaCampos

#11
2016 September 07, 06:59:14
Thanks, feline.

I don't know if I did everything you said correctly, but here it goes...  ::)

I've checked and there are other mods that use this hook (at least this string is in their hook's file)
- OharaYTEmbed
- TapATalk
- TeamPages

I've done the code change in PortaMXIntegrate.php, but the errors persists. Any time my portal admin opens some page in the forum, the log is filled with errors.
I also use UserCP mod, which might be causing this, but its not conflicting with any other of the mods installed...

Just to be certain:
If I, as the forum admin, create a block in the portal, the only way a user can edit that block is giving him/her admin protal rights?

feline

#12
2016 September 07, 19:15:43
Quote from: FragaCampos ,  2016 September 07, 06:59:14
Just to be certain:
If I, as the forum admin, create a block in the portal, the only way a user can edit that block is giving him/her admin protal rights?

No, there is a other way ..
You can give him right to work (limited) on blocks in panels you have enabled for this user (Group)

In the Manager Settings you can select the panels on which the group have access:
Membergroups they can moderate blocks in enabled panels:

Also you must enable each block for moderator access:
Enable Block moderation:

Granted rights:
Edit the content, access, title, css settings, activate/deactivate

For your problem I have no solution .. it must be a probem on SMF itself or one of your mods.
For the button modification we use SMF Hooks, there is no direct edit on this part ..
If any other mod change the button structure, this can give problems.

Hope this helps  ;)

At least .. if you have backups of all files with the older release, you can restore these and the install all upgrades in the order ..
But for this operation you need a backup of you database (better)  ;)
If this help I can't say  :-\

Ahh .. wait .. you can change the order of the tools they use the same hoohs as PortaMx ..
Best to put the Portal Hooks at front ..
This can you make only directly in the database in the table.

withe this query you can list the hooks:
Code Select

SELECT * FROM `pmx_settings` where variable like '%integrate%'


This is the last idea i have

Fel
Many are stubborn in relation to the path, a few in relation to the target.

FragaCampos

#13
2016 September 09, 05:19:05
Ok, I'll tell you how I tried to give my moderator rights to edit the contents of a block:

1. Went to Manager settings and activated all panels (just to be sure) in Panels on which a PortaMx Moderator has access:
2. Then, I went to Access settings and chose the moderator group in Membergroups that can moderate blocks in enabled panels:
3. Finally, I went to the block where I want him to edit its contents and clicked the Enable Block moderation: button.

But he is not able to access the block.  What am I doing wrong?


feline

#14
2016 September 09, 19:14:13
The Member is in the Group you have enabled for this ?
Many are stubborn in relation to the path, a few in relation to the target.