Broken login / logout

Adam Lewis Posted in Theme Development 3 weeks ago

First I want to say that I'm impressed with this software. Good job folks!

I've spent a few hours creating my own theme and it's going well.

Something that gave me trouble was trying to purge 'goblue' out of my theme in favor of my theme name (rgx)

I was able to get through the re-badging after several attempts doing search and replace, and renamed the files named goblue.php to rgx.php

I believe the trouble occurred when I renamed \forms\goblue to \forms\rgx or possibly \js\goblue.php to rgx.php

Now when I logout it throws the below:

1727301963|C510R3KT1TP1NJGOVP4QDR0P40

Where can I figure out what this error means?

Replies
us Adam Lewis Replied 3 weeks ago

I followed your suggestion with no issues. Thank you.

German Michael Zülsdorff Replied 3 weeks ago

Well,
the right and better way would be creating

themes/rgx/plugins/default/pages/contents

copy that original index.php file to this location
and apply your change there.
This way your theme is kept separate and you don't have to worry about the next core system update.

For a more in-depth understanding just walk through the development stages of https://www.opensource-socialnetwork.org/component/view/6044/goblue-registration-page

us Adam Lewis Replied 3 weeks ago

Thank you. The error_log file did generate and revealed that in the /var/www/html/realgenx/system/plugins/default/pages/contents/index.php file, the function is hardcoded with goblue:

customsettings = ossngobluegetcustomlogosbgs_setting();

I changed it to match my function name and I'm back in business!