Category: "Tips for PHP"
I have upgraded my blog from b2evolution 3.x to 5.0.7. I have experienced a lot of performance issues. I did some performance tuning. Maybe they are useful for you. Firstly, I cleaned all unpublished comments. That makes the database much smaller and faster to run. Moreover, I went to System->General, and unchecked Log hits for every public page. That save the execution time for each page. Then I deleted all hit logs in database. For the same reason, I wish the database to be smaller. These information is not very useful. I have other analytically software to track the visitor count. I wish those tips can help you have a better b2evolution.
I just got a new website built which is a Gantry template. I got some error, e.g. Fatal error: Out of memory. That is from Gantry's CSS LESS compiler. I tried to comment out the codes to by-pass compiler. It does not 100% work. Finally, I put a request to web host for increasing the buffer to 128MB. Then all works fine.
(Note that, I know you can use define function in php to increase your memory buffer, but some web hosts will not allow it.)
I got this error 'evo_hitlog' is marked as crashed and should be repaired. The cause of this error is evo_hitlog is full. You go to mysql, and type 'repaire table evo_hitlog'. Or just simply in run the command in phpmyadmin,TRUNCATE TABLE evo_hitlog;
When I install a new plug-in, I got this error:
"JFolder::create: Could not create directory plug-in"
Later, I found out the cause. The parameters in configuration.php are not configured correctly.
Please make these two lines in configuration.php pointed to the correct directory.