Jump to content

Member Notes


Adriano Faria

Recommended Posts

 

https://xxxx.xx/index.php?app=membernotes&module=notes&controller=notes&do=view&id=7&csrfKey=ed7392db7abe0037ff39ba75afec7e1

Error: Cannot use object of type IPS\membernotes\Note as array in /var/www/vhosts/xxxx.xx/httpdocs/system/Theme/Theme.php(860) : eval()'d code:332
Stack trace:
#0 /var/www/vhosts/xxxx.xx/httpdocs/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_membernotes_front_modcp->viewContent()
#1 /var/www/vhosts/xxxx.xx/httpdocs/applications/membernotes/modules/front/notes/notes.php(237): IPS\Theme\_SandboxedTemplate->__call()
#2 /var/www/vhosts/xxxx.xx/httpdocs/system/Dispatcher/Controller.php(90): IPS\membernotes\modules\front\notes\_notes->view()
#3 /var/www/vhosts/xxxx.xx/httpdocs/applications/membernotes/modules/front/notes/notes.php(21): IPS\Dispatcher\_Controller->execute()
#4 /var/www/vhosts/xxxx.xx/httpdocs/system/Dispatcher/Dispatcher.php(153): IPS\membernotes\modules\front\notes\_notes->execute()
#5 /var/www/vhosts/xxxx.xx/httpdocs/index.php(13): IPS\_Dispatcher->run()
#6 {main}
Edited by MythonPonty
Link to comment
5 minutes ago, MythonPonty said:

Hi Adriano. 

i get an error message if i click in the modcp on this button. 

image.thumb.png.665c5df66daacc6995fcda0144b4798d.png

image.thumb.png.576634b5f69a072b2a7b52703447134d.png

 

I have run the support tool and switch to the default theme. Nothing works...

I can confirm. If you don't want to wait for the fix in the marketplace, open the membernotes -> front -> modcp -> viewContent template and change the whole content by:

<div class="ipsPad">
	{{$member = \IPS\Member::load( $note->by )->link();}}
	<span class="ipsPos_right"><em>{lang="member_giver"} {$member|raw}, {datetime="$note->date"}</em></span><br><br>
	<ul class="ipsList_reset ipsPad ipsAreaBackground_light">
		<li>
			<div data-role='commentContent' itemprop='text' class='ipsType_richText'>
				{$note->content|raw}
			</div>
		</li>
	</ul>
</div>

Let me know if it works.

Link to comment
  • 2 months later...

Hey Adriano,

I just updated to Member Notes 2.2.7 on my test site (which is IPB 4.6.9).  I tried adding a note to a member in the adminCP and enabled the option to send the note as a PM to that member.  I got the following error:

OutOfRangeException:  (0)
#0 /XXX/applications/membernotes/modules/admin/settings/notes.php(274): IPS\Patterns\_ActiveRecord::load('5')
#1 /XXX/system/Dispatcher/Controller.php(90): IPS\membernotes\modules\admin\settings\_notes->memberNotesForm()
#2 /XXX/applications/membernotes/modules/admin/settings/notes.php(31): IPS\Dispatcher\_Controller->execute()
#3 /XXX/system/Dispatcher/Dispatcher.php(153): IPS\membernotes\modules\admin\settings\_notes->execute()
#4 /XXX/admin/index.php(13): IPS\_Dispatcher->run()
#5 {main}

The actual note is saved and is viewable/editable.  However, the PM was not sent to the member when I enabled it.

I also seem to get the above error whenever I try to add a note without sending it to the member as a PM.  However, in all cases the note still saves.

Also, for some reason, if I edit a member's note on the Member Notes tab in the adminCP, when I'm done I'm booted back to the Member Note listing for all members who have notes, when I should be returned to the specific member view.

 

Link to comment
58 minutes ago, LiquidFractal said:

Hey Adriano,

I just updated to Member Notes 2.2.7 on my test site (which is IPB 4.6.9).  I tried adding a note to a member in the adminCP and enabled the option to send the note as a PM to that member.  I got the following error:

OutOfRangeException:  (0)
#0 /XXX/applications/membernotes/modules/admin/settings/notes.php(274): IPS\Patterns\_ActiveRecord::load('5')
#1 /XXX/system/Dispatcher/Controller.php(90): IPS\membernotes\modules\admin\settings\_notes->memberNotesForm()
#2 /XXX/applications/membernotes/modules/admin/settings/notes.php(31): IPS\Dispatcher\_Controller->execute()
#3 /XXX/system/Dispatcher/Dispatcher.php(153): IPS\membernotes\modules\admin\settings\_notes->execute()
#4 /XXX/admin/index.php(13): IPS\_Dispatcher->run()
#5 {main}

The actual note is saved and is viewable/editable.  However, the PM was not sent to the member when I enabled it.

I also seem to get the above error whenever I try to add a note without sending it to the member as a PM.  However, in all cases the note still saves.

Also, for some reason, if I edit a member's note on the Member Notes tab in the adminCP, when I'm done I'm booted back to the Member Note listing for all members who have notes, when I should be returned to the specific member view.

 

Since it is a test site, I just sent you a test version via PM so you can test it out.

EDIT: For the others: do not update yet. Wait for the test.

Edited by Adriano Faria
Link to comment
On 11/5/2021 at 8:27 PM, MythonPonty said:

 

https://xxxx.xx/index.php?app=membernotes&module=notes&controller=notes&do=view&id=7&csrfKey=ed7392db7abe0037ff39ba75afec7e1

Error: Cannot use object of type IPS\membernotes\Note as array in /var/www/vhosts/xxxx.xx/httpdocs/system/Theme/Theme.php(860) : eval()'d code:332
Stack trace:
#0 /var/www/vhosts/xxxx.xx/httpdocs/system/Theme/SandboxedTemplate.php(61): IPS\Theme\class_membernotes_front_modcp->viewContent()
#1 /var/www/vhosts/xxxx.xx/httpdocs/applications/membernotes/modules/front/notes/notes.php(237): IPS\Theme\_SandboxedTemplate->__call()
#2 /var/www/vhosts/xxxx.xx/httpdocs/system/Dispatcher/Controller.php(90): IPS\membernotes\modules\front\notes\_notes->view()
#3 /var/www/vhosts/xxxx.xx/httpdocs/applications/membernotes/modules/front/notes/notes.php(21): IPS\Dispatcher\_Controller->execute()
#4 /var/www/vhosts/xxxx.xx/httpdocs/system/Dispatcher/Dispatcher.php(153): IPS\membernotes\modules\front\notes\_notes->execute()
#5 /var/www/vhosts/xxxx.xx/httpdocs/index.php(13): IPS\_Dispatcher->run()
#6 {main}

I got this error message again, after the last update. 

 

image.png.af3a5bf3963206f8d116aec1c52d16b9.png

Link to comment

Can't reproduce:

 

Make sure your template isn't edited and if it is, that's the content it should have:

{{if !isset( \IPS\Data\Store::i()->memberNotesGroups )}}
	{{\IPS\membernotes\Member::updateGroupsCache();}}
{{endif}}
{{$group = \IPS\Data\Store::i()->memberNotesGroups[ \IPS\Member::loggedIn()->member_group_id ];}}
{{if isset( $group ) AND $group['mn_g_viewnotes']}}
	<span class="ipsType_light">
		{{$user  = \IPS\membernotes\Member::getMember( $member );}}
		{{if isset( $user ) AND $user->notes}}
			<a class='ipsType_blendLinks' title="{lang="view_this_member_notes" sprintf="$member->name"}" href='{url="app=core&module=members&controller=profile&id={$member->member_id}&tab=node_membernotes_memberNotes" seoTemplate="profile" seoTitle="$member->members_seo_name"}'>{lang="num_notes" pluralize="$user->notes"}</a> 
		{{else}}
			{lang="num_notes_zero"}
		{{endif}}
		{{if $group['mn_g_addnotes']}}
			<a class='ipsType_blendLinks' title='{lang="add_note_to" htmlsprintf="$member->name"}' href='{url="app=membernotes&module=notes&controller=notes&do=add&mid={$member->member_id}"}' data-ipsDialog data-ipsDialog-title='{lang="adding_note_to" htmlsprintf="$member->name"}'><i class="fa fa-plus-square"></i></a>
		{{endif}}
	</span>
{{endif}}

 

Link to comment
  • 9 months later...
  • 1 month later...
  • 2 months later...

From the error log:

Error: Call to undefined method IPS\Member::canUseMessenger() (0)
#0 ./applications/membernotes/modules/front/notes/notes.php(108): IPS\membernotes\_General::sendAlert(Array, Object(IPS\membernotes\Note), 1)
#1 ./system/Dispatcher/Controller.php(107): IPS\membernotes\modules\front\notes\_notes->add()
#2 ./applications/membernotes/modules/front/notes/notes.php(25): IPS\Dispatcher\_Controller->execute()
#3 ./system/Dispatcher/Dispatcher.php(153): IPS\membernotes\modules\front\notes\_notes->execute()
#4 ./index.php(13): IPS\_Dispatcher->run()
#5 {main}

 

Link to comment
6 minutes ago, Daniel F said:

From the error log:

Error: Call to undefined method IPS\Member::canUseMessenger() (0)
#0 ./applications/membernotes/modules/front/notes/notes.php(108): IPS\membernotes\_General::sendAlert(Array, Object(IPS\membernotes\Note), 1)
#1 ./system/Dispatcher/Controller.php(107): IPS\membernotes\modules\front\notes\_notes->add()
#2 ./applications/membernotes/modules/front/notes/notes.php(25): IPS\Dispatcher\_Controller->execute()
#3 ./system/Dispatcher/Dispatcher.php(153): IPS\membernotes\modules\front\notes\_notes->execute()
#4 ./index.php(13): IPS\_Dispatcher->run()
#5 {main}

 

canUseMessenger() was added in 4.7.4. The user probably is outdated.

Marketplace files are always (or should) be compatible with latest version.

Link to comment
  • 6 months later...

Thank you so much for being a client!

The Invision Community Marketplace is closing on October 30, 2023, so I am moving all of my files over to my personal site www.sosinvision.com.br.

You will find information on my website www.sosinvision.com.br:

Bookmark https://www.sosinvision.com.br/ and the new Marketplace Directory www.Invisioneer.org.  

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...