Developer
Supported
Auto Expire
Back to this add-on's main page
View Other Add-ons From Wouter Vervloet
White Screen
Support Request
|
Jason Varga
|
| Posted: 02 November 2011 06:24 PM |
|
|
|
|
When uploading to the third_party folder, my extension page gets a white screen.
I named the folder auto_expire.
Deleting the folder brings back the CP.
:(
EE 2.3.1
Also, all I want to do is change the status of an entry to ‘closed’ when it reaches the expiration date.
I don’t want to automatically set an expiration per channel…. I can do that, right?
|
|
|
|
|
Wouter Vervloet
|
| Posted: 02 November 2011 06:28 PM |
# 1
|
|
|
Developer
|
Hi Jason,
Could you turn on debug mode and tell me what error is being thrown when you have uploaded the add-on? You can turn on debug mode by setting $debug = 0; in your admin.php file.
|
|
|
|
|
Jason Varga
|
| Posted: 02 November 2011 06:36 PM |
# 2
|
|
|
|
Fatal error: Class ‘DateTime’ not found in /var/.../expressionengine/third_party/auto_expire/ext.auto_expire.php on line 456
|
|
|
|
|
Wouter Vervloet
|
| Posted: 02 November 2011 06:44 PM |
# 3
|
|
|
Developer
|
Ah… your server is running a PHP version lower than 5.2?
– Wouter
|
|
|
|
|
Jason Varga
|
| Posted: 02 November 2011 06:48 PM |
# 4
|
|
|
|
Ah, crap. Yes it is.
It’s 5.1.6
Is there any way around it?
|
|
|
|
|
Wouter Vervloet
|
| Posted: 02 November 2011 06:58 PM |
# 5
|
|
|
Developer
|
Well since you’re not using the expiration date feature, you could comment out that part and that should solve it for you.
Before you install the add-on, comment out the following:
//line 357 & 358 'entry_submission_start' => 'set_expiration_date', 'safecracker_submit_entry_start' => 'safecracker_submit_entry_start',
And comment out everything from line 454 and down.
That should do the trick…
– Wouter
|
|
|
|
|
Jason Varga
|
| Posted: 02 November 2011 07:04 PM |
# 6
|
|
|
|
That worked, and the functionality acts how I expected.
We’re looking into upgrading our PHP version now.
Thanks for your help, Wouter.
|
|
|
|
|
|