It looks like you're new here. If you want to get involved, click one of these buttons!
I'm getting a blank screen, when following the "Signature Settings" link in profile/edit. The settings link points to profile/signature, and when I change it to something else (like profile/siggggnature), I get a normal 404 screen.
So that tells me the method is available in the controller. But no matter what I've tried, I just can't get it to return anything but a white screen.
How do I debug this?
I'm using Vanilla v2.1a10
Tim
Lord of Servers vanilla
Yes, and it has been fixed in there for some time. https://github.com/vanillaforums/Addons/tree/master/plugins/Signatures
Answers
I found the solution myself:
In Signatures/views/class.signatures.plugin.php:70 i changed ProfileController_Signature_Create(&$Sender) to ProfileController_Signature_Create($Sender). Then it works. But I'm not exactly sure why this was necessary ... ?
- Spam
- Abuse
- Troll
1 • Off Topic 1Insightful Awesome LOL •objects are passed by reference in php5. Some people don't know this.
Don't PM about development, I'm not currently taking on clients.
grep is your friend.
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •So, because $Sender is an object, there's no need to use the explicit pass by reference operator, or what?
I don't quite understand your answer ... :)
I'm unsure about my solution, because I can see the plugin was tested and approved - yet I have to make this change to make it work.
This has me wondering, if there's something else wrong with my code.
- Spam
- Abuse
- Troll
1 • Off Topic Insightful 1Awesome LOL •I had the same problem and the same change fixed it :)
Perhaps a code change is in order? Is the plugin on Github?
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Awesome LOL •