News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Cannot edit membergroups

Started by player.samp, October 28, 2014, 12:06:56 PM

Previous topic - Next topic

player.samp

Hi.

Whenever I try to edit membergroups (in the "Edit Membergroups" tab in the admin area) I get this error message:



An Error Has Occurred!
Unable to load the '' template.



I do not know how I can fix it.

Does anyone have any idea which file I should check / which file causes this error ?

Sir Osis of Liver

Did you change anything before this started?
Running any mods?
Does it happen in default Curve?
Did you try to put html or bbc code in a membergroup name?
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

player.samp

I already experienced the problem of trying HTML in a name of membergroup and it does not show any error regarding template, or at least it did not show when it happen to me.

Yes, I changed something.

Yes, I have mods. I have about 170 packages or a bit more.

It happens in the default theme.

Sir Osis of Liver

170 mods?  Surprising your forum works at all.  Try uninstalling the last ones you installed, see if the problem clears.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

margarett

Can we have your ManageMembergroups.php and ManageMembergroups.template.php?

Quote from: Krash on October 28, 2014, 03:00:17 PM
170 mods?  Surprising your forum works at all.
Why? As long as there are no conflicts, I don't see why not :P
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

player.samp

I think that there are the ManageMembergroups and ManageMembergroups.template. I downloaded from the online file manager of the host and called them "NAME.php" so that's why the "php" is probably shown in the name of the file, I think.

I think there were no conflicts but I actually haven't really checked the editing membergroups option until I finished to install the packages (maybe few times after I installed about 50, and it worked).

Kindred

and this is why you do things logically instead of helter skelter...  :P

back up
install a mod. check it out. make sure things work
back up
install the next mod...
repeat...

installing 170 mods at once and then "hoping" ntheat everything is going to work (even without conflicting mods) is like jumping off a bridge and "hoping" that there's a net...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

margarett

Well, one of these should be related
"possibleStars"
"allow deny boards"

Any of those in that list?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

player.samp

I think Allow deny boards is in the list. I will try to uninstall it and see if it is fixed.

Do you think it's a problem with my ManageMembergroups.php or ManageMembergroups.template.php ?

margarett

Not sure. This is just what I've seen touches those files ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

player.samp

I uninstalled the package and still got the same error. It was not fixed. :/

margarett

#12
Check the other one?

Quote from: margarett on October 28, 2014, 09:49:45 PM
"possibleStars"

edit: When exactly the error occurs? When you access the "Membergroups" section --> index.php?action=admin;area=membergroups
Or when you choose to "Modify" an existing group? --> index.php?action=admin;area=membergroups;sa=edit;group=1
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

player.samp

I searched in the package manager and could not find a mod called "possibleStars". I have never heard about that mod and in fact I couldn't even find it in the SMF website (at least not by searching for "possibleStars" and "possible Stars").

It happens to me when I try to access the "Edit Membergroups" area - /index.php?action=admin;area=membergroups

margarett

And can you access the groups directly via URL (like I put above, which should allow you to edit the "Administrator" group)?

Also, can you access, eg, attachments list? index.php?action=admin;area=manageattachments;sa=browse
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

player.samp

Yes, I can access to edit the administrator group, and also other IDs of groups.

I can also access to the attachments list and settings et cetera.

margarett

So it's not an issue with the GenericList stuff.
I'll dig up a bit more, see if I can come up with an idea...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Sir Osis of Liver

Look in smf_membergroups in your database and see if there are any special characters or html/bbc code in any of the fields, especially group_name or description.
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

player.samp

There isn't any HTML code nor BBC neither in group_name nor description.

margarett

I'm not sure if this helps, but maybe this MOD from Arantor can give us extra details?
http://custom.simplemachines.org/mods/index.php?mod=3953
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

player.samp

I downloaded and installed this package.

I found another bug from this kind. When I try to access to Email Template Editor, I get the same error:


An Error Has Occurred!
Unable to load the '' template.


/index.php?action=admin;area=emailtemplates

This package:

http://custom.simplemachines.org/mods/index.php?mod=2926

Maybe it is the cause of the problem?

margarett

Not sure.

After installing Arantor's mod, anything in the error log?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

player.samp

I think that the package does not even work because when I check the picture of the mod, and check my error list, it does not really look like the picture of the mod. It looks like it was before I installed that package.

margarett

No, that just means that what the MOD traces is not happening. You can uninstall it.

Any other relevant errors, maybe?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

player.samp

Not sure if it is relevant but I get an error each time I refresh the page:

8: Undefined index: gallery_txt_copyrightremoval


/public_html/Sources/Admin.php
Line: 323

Another errors:



8: Undefined index: catalign

/public_html/Themes/default/smfhacks_templates/global-hf.template.php (main sub template - eval?)
Line: 145




8: Undefined index: editcat

/public_html/Themes/default/smfhacks_templates/global-hf.template.php (main sub template - eval?)
Line: 135



These are pretty much most of the kinds of the errors I could find.

margarett

Probably unrelated (yet you should check in each support topic to fix those)

* margarett is out of ideas :(
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Arantor

The original error given is not something that would likely actually yield a stack trace.

Something is damaging $context['sub_template'].

Did anyone ask what mods are installed?

margarett

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Arantor

OK, so a diff of ManageMembergroups.php and Subs.php against original files?

margarett

Did it with ManageMembergroups, not Subs.

@player.samp, can you attach your Subs.php?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Arantor

I'm just thinking that that's where the final template handler is and that might be damaged in some way. Also, perhaps, Load.php.

margarett

Anyway, there has to be somewhere a call to sub_template through a variable that, for some reason, is empty. Because the "normal " calls usually have a fixed string...
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Arantor

Well, that's just it... it's a variable, it can be manipulated by anything because it's in $context.

It's not like you have a method that everything must go through to touch it where you can force a stack trace into, for example.

margarett

So best bet is to get all files and search everything for $context['sub_template'] = $
Or variations if it :P
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Arantor

You can't even guarantee that :( e.g. consider $context['sub_template'] = somefunction() ? 'one value' : 'another value', or even $context += array('sub_template' => 'value') or variations on that.

You pretty much need to search on just sub_template, you can't even rely on 'sub_template' with single quotes :( And don't forget hooked mods too.

The crazy ways you can interfere are not funny, which is why a central policing method is a serious advantage.

(Helped me debug my gallery to have such a method, though of course it just updates $context['sub_template'], but having everything use that means I can stack trace the heck out of things and monitor what it is)

player.samp

I still get the error:

8: Undefined index: gallery_txt_copyrightremovalApply Filter: Only show the errors from this file File:

/public_html/Sources/Admin.php
Line: 323

If it is saved in the database and it happens each time I refresh the page or access other page, won't it slow down the forum or something like that, or may even cause to worse things?

Subs.php can be found in the attachment. I uploaded it as a txt file.

margarett

Your file seems messed? It misses the opening php opening and closing tags.

Why not upload the php file?

The error only gets you error log bigger (and of course, adds a query to insert it to the database). Performance-wise should not be a problem, but I would for sure like to get a clean error log ;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

player.samp

I actually have no idea why when I did ctrl+a, copied everything and pasted everything in txt file, it did not copy the opening and closing tags but I have them in the file.

Illori


margarett

With 170 mods? That would be painful ;D

Can you please add $db_show_debug = true; to the end of Settings.php (before the closing php tag) and PM me an admin account?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Illori

maybe they dont really use all 170 mods and this would be a good time to prune them down.

also keep in mind everyone by default can view the debug output... so might want to wait a bit before adding it.

or http://custom.simplemachines.org/mods/index.php?mod=2400

player.samp

Quote from: Illori on October 31, 2014, 07:37:05 AM
maybe they dont really use all 170 mods and this would be a good time to prune them down.

also keep in mind everyone by default can view the debug output... so might want to wait a bit before adding it.

or http://custom.simplemachines.org/mods/index.php?mod=2400

I installed this package but I do not really understand the usage of it nor cannot see where it effects.

The forum got 179 installed packages.

Quote from: margarett on October 31, 2014, 07:28:24 AM
With 170 mods? That would be painful ;D

Can you please add $db_show_debug = true; to the end of Settings.php (before the closing php tag) and PM me an admin account?


Done.


margarett

The issue is fixed. Everyone should remember the difference between
if ($context['sub_template'] = (.........
And
if ($context['sub_template'] == (.........

;)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Arantor

There are times you might do that but it's specialised.

Curious, what was doing a comparison against the sub template?

margarett

An outdated version of a MOD for highlighting packages in PackMan. TBH I don't know because I already deleted all files from my computer :P but I was terribly lucky. I searched by content all files for "$context['sub_template']". Of course I got pretty much all Sources ;D So I thought "hey let's start from the last one, since it's not even a core file". And bang, there it was ;D
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

Arantor


Advertisement: