impresspages / ImpressPages

ImpressPages is php framework with admin panel. Build functional website in one hour.
http://www.impresspages.org
Other
502 stars 175 forks source link

Can't clear log and mail log #836

Open hilburger opened 7 years ago

hilburger commented 7 years ago

Hi guys,

I can't removed those old entries re-using an old website for a new one. I have set these values in the back end config:

` 2017-02-12 09:00:00 Cron.finished
array(0) { }

2017-02-12 09:00:00 Cron.started
array(7) { ["firstTimeThisYear"]=> string(0) "" ["firstTimeThisMonth"]=> string(0) "" ["firstTimeThisWeek"]=> string(0) "" ["firstTimeThisDay"]=> string(0) "" ["firstTimeThisHour"]=> string(1) "1" ["lastTime"]=> string(10) "1486885684" ["test"]=> string(0) "" } `

Have I forgotten something?

maskas commented 7 years ago

This doesn't look like old: "2017-02-12 09:00:00"

hilburger commented 7 years ago

That's only an extract of the normal log. The routine started on 2017-02-12 09:00 but the mails in the log and all page versions are from 2015/2016.

mails-logged

maskas commented 7 years ago

Go to Admin -> Config -> Advanced and visit "cron URL" with added "&test=1" at the end.

"test=1" forces ImpressPages to execute all routines, no matter when they were executed last time.

Because old email removal worked on my test site, I claim, that you will see an error, that will explain the cause of the problem. If everything is OK, you should see "OK" text. If you see a totally blank page, that means you have got an error, but error reporting is turned off - turn it on in the config file.