Solved

Error on website, need help resolving, all of a sudden site stopped working, php fatal error

Posted on 2012-12-27
15
292 Views
Last Modified: 2014-02-17
Hi Experts,

Just put a site live in a test environment and it has mysteriously stopped working.  Could you please help me resolve the error, which can be seen on http://www.webtrixzambia.com/afres

Fatal error: Call to a member function options() on a non-object in /home/alliance/public_html/webtrixzambia.com/afres/wp-content/themes/arctica/ait-cache/_Nette.FileTemplate/_Templates.main-homepage.php-a0041a43308663b03523e3dacde1e9b9.php on line 48

Baffled as to how it just came up.  Help much appreciated!
0
Comment
Question by:kasondeneddy
  • 7
  • 3
  • 2
  • +3
15 Comments
 
LVL 16

Accepted Solution

by:
grahamnonweiler earned 125 total points
ID: 38723767
Clear the cache ( or disable it) and then try again. You have a script calling a function that no longer exists (could have been a plugin you removed).
0
 
LVL 70

Assisted Solution

by:Jason C. Levine
Jason C. Levine earned 375 total points
ID: 38724674
Also, when moving sites from production to live or vice-versa don't move any cache folders or files.
0
 
LVL 15

Expert Comment

by:Insoftservice
ID: 38726069
clear the cache , and if possible please provide the tpl page. so as to check it again.
0
Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 

Author Comment

by:kasondeneddy
ID: 38726255
Hi,

I have had no luck.  How do I clear the cache in wordpress?  I tried deleting the cached files but nothing worked.

I have attached the code for the tpl page in the cache folder where the problem is.
problempage.php
0
 
LVL 9

Expert Comment

by:EZFrag
ID: 38726978
Hi there,

I don't believe that the issues is with the cache... there is something else going on here.
Could you please explain step by step how you migrated the Wordpress site to the staging environment?

I migrated quite the amount of Wordpress sites, so hopefully I might be able to spot something.

Kind Regards,
EZFrag
0
 
LVL 11

Expert Comment

by:mcnute
ID: 38727570
Check the file permissions on your live server. This could be done via FTP. All involved files should be on 755 to be accessible to your wordpress site.

Use Filezilla: navigate to the directory where your wp is installed and make a right click on it.
Then select File Permissions on the bottom. Set 755 in the dialogue and select for "apply for all subdirectories and files" -> Ok, and you're done.

Then check if your installation works again.
0
 

Author Comment

by:kasondeneddy
ID: 38729187
Hi, tried the solution by mcnute but had no luck.  What I did to migrate to the staging environment was as follows:

-  Copied database from local to staging environment.  Staging environment had wordpress installed by default originally from hostgator, it had wp super cache plugin installed by default.
-  Then copied theme files, plugins and uploads.

Could it be the wp super cache plugin affecting things? I deleted it recently after the site was running and been trying to debug.
0
 
LVL 70

Assisted Solution

by:Jason C. Levine
Jason C. Levine earned 375 total points
ID: 38729388
Could it be the wp super cache plugin affecting things?

Most likely.  Does your local environment exactly mirror your staging environment (identical server paths, etc)?
0
 

Author Comment

by:kasondeneddy
ID: 38730481
Yes now it does but previously it didnt, had wp super cache files there.  Should I re-upload theme, baffled by this problem.  Everytime i delete the page generated in cache folder, when i refresh the site, the page comes back in the cache folder and error still there.

What could be the best solution to this problem?
0
 
LVL 70

Assisted Solution

by:Jason C. Levine
Jason C. Levine earned 375 total points
ID: 38730487
Purge the cache files then deactivate Super Cache.  Do not attempt to transfer with an active caching plugin.
0
 

Author Comment

by:kasondeneddy
ID: 38730528
How do I purge the cache files? Thanks for the help guys....means a lot
0
 
LVL 15

Expert Comment

by:Insoftservice
ID: 38730849
0
 

Author Comment

by:kasondeneddy
ID: 38731419
its wordpress
0
 

Author Comment

by:kasondeneddy
ID: 38731495
Hi Guys,

Thinking out the box and commented out code line by line and the site is back running but now lost my home page slider.

Commenting out code in the ait-cache folder, trouble is some elements have stopped working now.

Will have a play, any advice will much appreciated.
0
 

Author Closing Comment

by:kasondeneddy
ID: 39864540
Helpful
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question