James Bachini

Prosper202 Mod – Set preferences before crashing server

Had a bit of an issue with Prosper crashing once the database got too big. I would log out and leave the analysis preferences set to my biggest traffic source and when I logged back in the server would crash as it tries to pull a report before you can modify the search critieria.

I knocked up a quick mod so you can set preferences before attempting to run a report. Copy the following code into a text file and name it prefs.php

<? include_once($_SERVER[‘DOCUMENT_ROOT’] . ‘/202-config/connect.php’);
AUTH::require_user();
AUTH::set_timezone($_SESSION[‘user_timezone’]);
template_top(‘Set Preferences’,NULL,NULL,NULL); ?>
<div id=”info”><h2>SET PREFS</h2></div>
<? display_calendar(‘/tracking202/ajax/sort_keywords.php’, true, true, true, true, true, true); ?>
<?  template_bottom();

You can then just link to it in 202-config/template.php

This allows you to adjust the settings without running off a report and setting them to sensible parameters before crashing the server.

server cpu and memory usage


Get The Blockchain Sector Newsletter, binge the YouTube channel and connect with me on Twitter

The Blockchain Sector newsletter goes out a few times a month when there is breaking news or interesting developments to discuss. All the content I produce is free, if you’d like to help please share this content on social media.

Thank you.

James Bachini

Disclaimer: Not a financial advisor, not financial advice. The content I create is to document my journey and for educational and entertainment purposes only. It is not under any circumstances investment advice. I am not an investment or trading professional and am learning myself while still making plenty of mistakes along the way. Any code published is experimental and not production ready to be used for financial transactions. Do your own research and do not play with funds you do not want to lose.


Posted

in

,

by