How to get deleted files back in Symfony? - symfony

Please help me I'm in a big problem :(
I lost a very important .twig file in my Symfony project after clearing the cache. Is it possible to get it back?
Please any idea may help me, I have to represent my work tomorrow and I can't recode it now.

Related

Wordpress W3 Cache is over cacheing -- and dont know how to approach the problem

I created an LMS, where teachers approve students to view certain lessons, using the Educator plugin which is no longer available. I had never installed a Cache plugin cause I know nothing of it, but time performance led me to W3 and a tutorial on recommended.
Now, I am getting people unable to see their course work even when logged in. Meaning, they cannot access a blog post that is blocked by default to all users but them. I have the option of "dont cache for logged in users" checked.
Here's where I am at a loss: People in the same course can see the post... and i can always see it myself. Sometimes the person reloads and it works. And since I am just a 3rd party, I don't have names/emails of people with the issue. So I have no idea what they see, how they see it, and how to debug.
So, after this block of text, here's my hypothesis and what I need help with:
Hypothesis: Everything is blocked by default, thus a person who is re-entering after W3 was installed needs to basically wait for his browser-server to agree on what he can see again.
If this is wrong cause I know nothing of cacheing... how do I approach this? re-install and start adding cache options one by one, waiting a few days to see if any student has issues?
Sorry if this is not too technical a question, I just need that first clue to get started :)
you need to check the .htaccess file. most likely cache code has been added to this file. that's why you have problems with the cache.

Duplicate Wordpress Site

I am writing to see if anyone has any tips on how one might be able to duplicate a Wordpress site.
We have branded and designed a research study site, and would like to copy this site entirely and rebrand it for a different study.
Does anyone know what might need to go into this to do so? Having trouble figuring this out!
Best,
Taylor
I guess it depends on what you mean by "rebrand". To just duplicate the site should be a relatively easy job to do. You will have to download everything from you public_html and also get a backup of your database. Then upload the files from public_html to a new hosting and also import the database.
After that part now arise some more things. First of the domain name. You will need to change the domain name to reflect a new one you want to use -- i will not get into details about that since you can find lots of good tutorials on how to do that with simple googling. If you need to change any pictures/logos and anything else since you designed it you should know what to change.
Then if there are remaining parts that need to be changed, for example there are many cases in texts fields where the brand of the previous research site is mentioned then I can suggest using a tool like wp-cli which is the only tool currently that comes to my mind for such a cache. It is a really useful and powerful tool but it requires you to have access to ssh to the hosting.
If i come up with something else as well, I will update this.

occasional client error fullcalendar.js

I am trying to help sort a friend's issue with their fullcalendar.js implementation.
The problem thus far is the events not loading consistently. Before uploading it to the Godaddy domain it worked every time but is spotty at best now. I looked at the Google developers tools and the credentials are all squared but saw that there is a client error happening however, I'm not sure where to look to fix an occasional problem? I am led to believe it is some sort of server issue but don't know where to start looking.
I don't have any rep so no pics, here is a link to the dashboard.
https://www.dropbox.com/s/x1xfuyonavxz3vi/Screen%20Shot%202015-01-07%20at%2010.42.53%20PM.png?dl=0
Any help would be amazing, thanks!
Edit:
I contacted Godaddy to no avail, they said it was Google's issue and I should contact them.. which isn't possible without paying for it.. Also, I found a work around: if I refresh the page navigate away and return it loads correctly.. any ideas on how to code it so if it fails to load I can get the same process?
Hopefully this will help someone else, but...
I fixed my problem by changing the hierarchy of my files. I moved the calendar to the public html folder instead of the nested html folder. It seems as if the Jquery request to Google was getting interrupted or bogged down somehow, but, thus far I'm digging the 100% success rate. If anyone cares to weigh-in further, I'm happy to hear other suggestions.

Slow page load after Wordpress 4.0.1 update

All my WP sites ran perfectly fast until they got automatically updated to 4.0.1, now they each take approximately 3 minutes to load any page, even in admin. I am using different hostings on those pages, so it's not server related.
http://i.stack.imgur.com/xCDF2.png
Do you please have any ideas what might be causing the problem or what should I try to do? I tried rolling back to 4.0 but the slowness stays. I'm getting desperate.
I was facing the same problem, i guess you are using the same template on your all sites. I recommend to change your theme to Twenty Fourteen.
In my case I narrowed the issue down to the options table of the WordPress database. I'm not entirely sure which rogue option caused the issue after updating to 4.0.1 but something was choking it up pretty badly as every page request was taking 2-3min to load both on front and backend.
I've replaced the options table with a fresh one and the problem was gone. The issue was resolved easily in my case as the website was fairly simple, however, if yours has numerous option values then your only hope it so dissect the table to find what could be choking it.

View which user deleted certain post?

So I have this problem. A client has a wordpress website and the content is managed by 3 admins. One of them deleted all the content and no one will admit that he did it. So I need to investigate who deleted all the posts.
Is it possible to do in any way? I googled it and didn't find anything about something like this.
I'm pretty sure Wordpress doesn't come with a user action log. There is loads of plugins out there which can do it though.
Can you not get the posts back by running a recent backup in place? I know it doesn't solve the problem but as I don't think there is anyway to track it, may as well prevent it from happening again or something.

Resources