Solved

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

Posted on 2012-12-27
15
286 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
Comment Utility
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
Comment Utility
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
Comment Utility
clear the cache , and if possible please provide the tpl page. so as to check it again.
0
 

Author Comment

by:kasondeneddy
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
LVL 70

Assisted Solution

by:Jason C. Levine
Jason C. Levine earned 375 total points
Comment Utility
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
Comment Utility
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
Comment Utility
Purge the cache files then deactivate Super Cache.  Do not attempt to transfer with an active caching plugin.
0
 

Author Comment

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

Expert Comment

by:Insoftservice
Comment Utility
0
 

Author Comment

by:kasondeneddy
Comment Utility
its wordpress
0
 

Author Comment

by:kasondeneddy
Comment Utility
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
Comment Utility
Helpful
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

728 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now