Jump to content

Upgrading to PW3 / Filecompiler always compiling


Orkun
 Share

Recommended Posts

Hi Guys

I upgraded today an existing 2.7.3 PW Installation to PW 3.0.141.
I am now always getting this message when refreshing the admin because of a custom module I had made a long time ago which is using the PHPExcel library:1200089345_Bildschirmfoto2019-10-01um14_36_38.thumb.png.4d8aec7553db32014cf53c6d27292703.png

 

The Structure of the module looks like this:
697552173_Bildschirmfoto2019-10-01um14_42_27.png.28f82bc2325a70fc519b497da7b76cd6.png

 

And it is included like this in the module file:
1160436257_Bildschirmfoto2019-10-01um14_42_10.png.579c5ca171aedf8db4c3736f2954fdae.png

 

At first I thought I need to add

namespace ProcessWire;

at the top of to the ProcessEventManager.module but doing that lead to this error message and I wasn't able to use the admin at all:
1439007064_Bildschirmfoto2019-10-01um14_54_16.png.ff2be2e9727020a974612dd69ae49076.png

 

When I remove the line

require_once( dirname(___FILE___) . '/Classes/PHPExcel.php');

from the ProcessEventManager.module file the filecompiler message doesn't come anymore.

Do you know how can I remove the FileCompiler Message once and for all without removing PHPExcel?

KR
Orkun

Link to comment
Share on other sites

37 minutes ago, BitPoet said:

Adding a /*NoCompile*/ FileCompiler hint as explained here should solve the issue (and let you keep FileCompiler active).

Hi @BitPoet

Thank you for your help. But when I do this:

require_once( dirname(__FILE__) . '/Classes/PHPExcel.php' /*NoCompile*/ );

I can't access the processwire backend anymore and this error is thrown:

996326202_Bildschirmfoto2019-10-01um16_41_21.png.942c6c6e95aba7c9f57b0141022a9e0d.png

KR
Orkun

 

Link to comment
Share on other sites

15 hours ago, BitPoet said:

Does it still persist if you delete the contents of site/assets/cache/FileCompiler?

The error persisted even when i deleted the contents of site/assets/cache/FileCompiler.

But I have now added the following inside the PHPExcel File and it is working now:

1259668553_Bildschirmfoto2019-10-02um08_29_24.png.30d689e33c827ec40ab5e1bcd2b9de8e.png

KR
Orkun

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...