Extension

Developer
Supported

EE 1
EE 2
Auto Expire

Back to this add-on's main page
View Other Add-ons From Wouter Vervloet

     

You must be logged in to post.

White Screen

Support Request

Jason Varga
Jason Varga

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
# 1
Developer
Wouter Vervloet

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
# 2
Jason Varga

Fatal error: Class ‘DateTime’ not found in /var/.../expressionengine/third_party/auto_expire/ext.auto_expire.php on line 456

Wouter Vervloet
# 3
Developer
Wouter Vervloet

Ah… your server is running a PHP version lower than 5.2?

– Wouter

Jason Varga
# 4
Jason Varga

Ah, crap. Yes it is.
It’s 5.1.6
Is there any way around it?

Wouter Vervloet
# 5
Developer
Wouter Vervloet

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
# 6
Jason Varga

That worked, and the functionality acts how I expected.
We’re looking into upgrading our PHP version now.

Thanks for your help, Wouter.

Wouter Vervloet
# 7
Developer
Wouter Vervloet

You’re welcome.