I've developed a module (which places a block and has a settings page), it works great locally on my xampp environment, doesn't generate any errors. I developed it in my local /modules in drupal's root directory.

Then my web admin uploaded it to the dev server. It got placed (rightly or wrongly) in /sites/default/modules/contrib - I hadn't specified which modules directory to put it in as I didn't think this mattered, when I try to place the block in the block layout page, I get this PHP warning:

Warning: require(/srv/bindings/xxxxxxxxxxxxx/code/modules/google_plus_activity_stream/src/Plugin/Block/GooglePlusActivityStreamBlock.php): failed to open stream: No such file or directory in Symfony\Component\ClassLoader\ApcClassLoader->loadClass() (line 110 of /srv/bindings/xxxxxxxxxxxxx/code/vendor/symfony/class-loader/ApcClassLoader.php).

Nothing in my files specifies a path to the root /modules directory, and comparing it to other block examples, it doesn't seem like anything is wrong.

Can anyone point me in the right direction by any chance?

Thanks in advance

Comments

telegraph created an issue. See original summary.

cilefen’s picture

Did you copy the database from xampp to the server?

telegraph’s picture

No, I uploaded the module to the server and installed it there

samuel.mortenson’s picture

It looks like you'll need to clear APC cache on your server.

telegraph’s picture

Status: Active » Closed (fixed)

@samuel Thanks very much, this seems to have corrected the problem.

I used the code found here: http://stackoverflow.com/questions/911158/how-to-clear-apc-cache-entries