Jump to content

Site put live -> Fatal Error


Dean
 Share

Recommended Posts

Dear community

I have put a site live by FTPing files, copying database, updating config, emptying cache DB table. But I now have this:

Fatal Error: Uncaught Error: Call to a member function execute() on null in /var/www/vhosts/mydomain.com/httpdocs/index.php:55

Can anyone help please?

Link to comment
Share on other sites

2 hours ago, Dean said:

Can anyone help please?

That line wants to execute ProcessPageView. The error means that line 53 returned null:

$process = $wire->modules->get('ProcessPageView'); /** @var ProcessPageView $process */

My guess is that files were either not transferred correctly, or fully or were corrupted. FTP can be notorious for converting files on route! (ASCII vs Binary)

I'd suggests this:

  1. Upload a zip of ProcessWire
  2. Unzip the files when they are on the server
  3. Install ProcessWire
  4. Upload a zip with the file assets
  5. Unzip the assets
  6. Do the database import

Alternatively

  1. Install ProcessWire on the server using this script by Soma (you might need to edit it first)
  2. Follow steps #3 - 6 above

Later, you can sort out your FTP file transfer settings.

  • Like 5
Link to comment
Share on other sites

Many thank-yous @kongondo. The site is now working. Kind of. For some reason ProcessWire is showing as the crummy old version (see screenshot), yet I'm using v3.0.148. And the pages aren't showing on /processwire/page/. Everything else seems fine.

Untitled-1.jpg

Link to comment
Share on other sites

13 hours ago, Dean said:

For some reason ProcessWire is showing as the crummy old version (see screenshot), yet I'm using v3.0.148.

I don't think we've ever gotten to grips with this bug. It bites some people every now and then.

12 hours ago, Dean said:

Strangely, installing Reno's admin theme has fixed everything.

Excellent! Glad you got it sorted ? 

  • 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...