|
I've got two issues going on at the same time: 1) I've got a page throwing an error: Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 64 bytes) in /home/sdfsdfsdf/public_html/foldername/wp-includes/meta.php on line 829. And 2) I got an email warning me that "Your web hosting account is approaching or exceeding its resource limits." Which are here: For #1, the site's been working fine for weeks, then someone was making changes to this particular page, and bam, it's broken. Sometimes I can delete content and save and it's fine, sometimes I can't. Mostly I can't. The site uses Visual Composer for most of everything, and it seems like I can add some content in this way fine (text, etc), but if I try to add something more complex it throws up. The rest of the site runs fine. I'm aware that there are a ton of results if you search for that error, but they're not real clear on why it's happening. As much as I want to fix it, I really want to know what's triggering it, too. Long story short one of the proposed solutions was to increase the memory limit by adding the following in my wp-config file: define( 'WP_MEMORY_LIMIT', '256M' ); define( 'WP_MAX_MEMORY_LIMIT', '512M' ); And...this seems to work. Some guys here propose that there's a fuckton of ajax requests happening when you edit with Visual Composer, causing it to run out of memory, but I'm out of my depth at this point so I can't say whether they're right or not. I guess my question is, has anyone run into this before, and is there any way to better optimize a site using VC? jackpot fucked around with this message at 13:46 on Sep 2, 2015 |
# ? Sep 2, 2015 03:52 |
|
|
# ? May 8, 2024 07:08 |
|
Visual Composer just does use a lot of memory, so there might not actually be anything wrong with your setup. One thing you can do is break up the page that is causing problems into a set of smaller pages. You can still display them as a single page on the front-end, but limiting the number of VC elements that need to load when you edit a page should help performance. You can disable VC elements that you never use with vc_remove_element: https://wpbakery.atlassian.net/wiki/pages/viewpage.action?pageId=524329 I think I remember reading once that this reduces memory usage but I'm not sure. P3 might tell you something useful: https://wordpress.org/plugins/p3-profiler/
|
# ? Sep 2, 2015 14:15 |
|
Holy gently caress, stay away from wpmudev at all costs. I was autobilled for 3 months worth of membership on the same day I tried to cancel, so I emailed (politely) to see if they could resolve the issue. Instead of just canceling my account and issuing a refund, they demanded a reason first, and got angry and defensive when I gave them one. I'm literally emailing with a guy who is going point by point over my entire support request history and explaining how each issue I've had was my fault. Probably the worst experience with a software company I've ever had.
|
# ? Sep 5, 2015 16:33 |
|
Is there a plugin that can keep specific tags from showing in posts? I have a tag for posts that should be in the frontpage slider, but I don't want it appearing to readers. Should be easy to search for, but I can't find anything :/
|
# ? Sep 17, 2015 11:23 |
|
I've got a WP problem and I can't seem to figure out what the heck is going on. Right now when I go to my site (http://theorangemusic.com) all I get is a white screen. Previous to that everything was working correctly and I hadn't changed anything or probably even logged in in maybe 2-4 weeks. The site was working fine and then *poof* it just stopped working. My server is working fine because I can log into cPanel and see my files and stuff. Nothing in the files looks corrupted or missing...at least to my eyes. The problem is I can't login to my WP admin side at all (http://theorangemusic.com/wp-admin). I just get the white screen. Any ideas? Is there a way to reload WP without losing all my files? What do I do?
|
# ? Sep 24, 2015 17:41 |
|
You're probably getting a 500 error but php is set to suppress errors so nothing is rendering. Look at your server logs and see if you can find the issue.
|
# ? Sep 24, 2015 17:44 |
|
Here's my WP error log. quote:[19-Sep-2015 22:56:24 UTC] WordPress database error Server shutdown in progress for query SELECT prh_posts.* FROM prh_posts WHERE 1=1 AND prh_posts.post_type = 'wp-types-user-group' ORDER BY prh_posts.post_date DESC made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, wpcf_embedded_init, require_once('/plugins/types/embedded/usermeta-init.php'), Usermeta_Access->__construct, wpcf_admin_fields_get_groups, get_posts, WP_Query->query, WP_Query->get_posts EDIT: I'm also getting this error quote:[Thu Sep 24 10:09:37.822750 2015] [access_compat:error] [pid 74326:tid 139802764625664] [client 210.89.37.122:53412] AH01797: client denied by server configuration: /home/pvvzbtyn/public_html/xmlrpc.php Can anyone make heads or tails of it?
|
# ? Sep 24, 2015 18:46 |
|
Are you on shared, or provided hosting? Is it wordpress-specific hosting? Are you expected to manage and update your own server? because...Xarthor posted:[21-Sep-2015 06:14:58 Europe/Berlin] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20121212/imagick.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20121212/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0 Chances are you don't need these, and they're just warnings, but you can check it out by dropping a file on the server with just phpinfo() and looking for these named modules. You'd normally expect imagick to show up in the list. Xarthor posted:[19-Sep-2015 22:56:24 UTC] WordPress database error Server shutdown in progress for query SELECT prh_posts.* FROM prh_posts WHERE 1=1 AND prh_posts.post_type = 'wp-types-user-group' ORDER BY prh_posts.post_date DESC made by require('wp-blog-header.php'), require_once('wp-load.php'), require_once('wp-config.php'), require_once('wp-settings.php'), do_action('init'), call_user_func_array, wpcf_embedded_init, require_once('/plugins/types/embedded/usermeta-init.php'), Usermeta_Access->__construct, wpcf_admin_fields_get_groups, get_posts, WP_Query->query, WP_Query->get_posts Xarthor posted:[Thu Sep 24 10:09:37.822750 2015] [access_compat:error] [pid 74326:tid 139802764625664] [client 210.89.37.122:53412] AH01797: client denied by server configuration: /home/pvvzbtyn/public_html/xmlrpc.php White-screen-of-death is a PHP error for sure, but with error displaying turned off. I realise that's your WP log, but what were the severity settings? Something must be missing here. If you don't blowing up the public side of the site for a bit, you can add this to your wp_config: code:
code:
Edit: fixed the ini settings v1nce fucked around with this message at 00:42 on Sep 25, 2015 |
# ? Sep 25, 2015 00:38 |
|
What is the best way to debug a wp plugin, completely new to wordpress and my debug log has been trowing up errors
|
# ? Sep 25, 2015 08:43 |
|
fadderman posted:What is the best way to debug a wp plugin, completely new to wordpress and my debug log has been trowing up errors 1. Read error text to determine location of bug 2. Find bug and fix it 3. GOTO 1 until all bugs are fixed I would offer more specific advice, but your question is about as vague as they get.
|
# ? Sep 25, 2015 14:52 |
|
kedo posted:1. Read error text to determine location of bug kedo posted:1. Read error text to determine location of bug Sorry about that, the plugin was made by one of the coworkers that is coming back from vacation on Monday, just got the job. The error msg was something about styles and scripts, I don't have the error msg in front right now, I was looking for best ways to edit code in the plugin then test it without crashing Wordpress
|
# ? Sep 26, 2015 21:27 |
|
FYI, Alex King died of cancer last night.
|
# ? Sep 28, 2015 18:59 |
Is there a plugin or something that I can use to make a widget not load until x seconds have passed?
|
|
# ? Sep 29, 2015 06:25 |
|
I'm going to post the actual "job" post in SA-Mart, but before I did that I was wondering if someone in here could take a look at my blog and let me know how long/approximate cost it would be to clean up how my site looks on mobile devices. It's set up well for computers, but there is a mobile version apparently that just looks like utter garbage. Here is link - http://genesisstrengthfaction.com/
|
# ? Oct 2, 2015 14:17 |
|
Alfalfa posted:It's set up well for computers, but there is a mobile version apparently that just looks like utter garbage. 2. did they point out any specific parts that look dodgy? The whole thing is already fully responsive - just rescale the window for an example, or kick chrome into device emulation mode. Your biggest problems is your menu sucks (design wise, functionally it works) and your header bar overlays itself. You can fix that by just hiding one of the elements and scaling your header image correctly. Your text and titles could do with being smaller, and you should probably remove float from images at the start of articles where possible, because the text to the right gets pretty funky. That's all I could see off the top of my head, and if that's it, I'd probably say it's just a few hours work, and most of that would overhead like setting up local dev (though you never know without seeing the code innards).
|
# ? Oct 5, 2015 23:34 |
|
Still trying to find an efficient way to migrate sites. Duplicator plugin is good but you still have to transfer the archive and set up the destination DB manually. http://managewp.com/ seemed really promising and has a lot of cool features, but they don't let you migrate a site from one server to another while keeping the same site URL - you have to change the URL for their migration script to work. I went back and forth with their support for ages and they wanted me to follow some elaborate process involving adding and removing the site from their control panel with various temporary URLs. Completely stupid. My dream migration process would be: 1) install some magical plugin on old site 2) enter SSH details of new server, as well as root MySQL pass and destination directory 3) the plugin transfers all files, creates the new DB, migrates the DB Does anything like that exist?
|
# ? Oct 9, 2015 13:10 |
|
This isn't quite as general as what you're describing, but some hosts like WP Engine have plugins that are basically that simple: http://wpengine.com/support/wp-engine-automatic-migration/.
|
# ? Oct 10, 2015 03:06 |
|
v1nce posted:1. who told you that? Appreciate the feedback and ill get an sa-mart thread posted this week. All the text just looks really big in mobile view and the header/menu combination doesn't work like you said. Those were the main things I've noticed that really bug me and kill the mobile view.
|
# ? Oct 15, 2015 13:19 |
|
Can I get a few suggestions for the white screen of death?code:
All I see in my Apache access log is: code:
My php install seems to be okay, I can run phpMyAdmin just fine, as well a base Wordpress install, and the wp-admin/install.php page on this site gives me the "You appear to have already installed WordPress. To reinstall please clear your old database tables first." message. I also made a little dbtest.php with the same user/pass/dbname as in wp-config and it connects successfully. I've moved a handful of Wordpress/Joomla sites in the past, I'm working from a zip file that a advertising company sent over that went out of business. I imported the MySQL database fine, moved the files over, re-set the permissions. php version 5.5.9 (it was running on 5.2.17 on the old server) Wordpress 4.1.7 Apache 2.4.7 mysqld 5.5.44 ubuntu 14.04 server It was running on GoDaddy before, I'm not sure if there's anything that needs to be changed between a shared environment and running on a Linux VM. I just can't get this fucker to spit out any useful information.
|
# ? Oct 15, 2015 14:16 |
|
Bob Morales posted:My php install seems to be okay, I can run phpMyAdmin just fine, as well a base Wordpress install, So a fresh WP install works fine? You could split the migration into two steps: import the DB first and see if the content displays with the default theme, then import the site files. That might help you narrow down the issue. For the DB: has the URL changed? WP stores the absolute URL in "siteurl" and "home" in wp_options that you might need to update. Themes and plugins sometimes store absolute URLs too so you might want to do a search-replace on the whole DB. An SQL search-replace isn't enough because it can't handle serialised arrays, so you need something like wp-cli or https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ For the site files: are you migrating the WP core from the old site or just the wp-content directory? Try just migrating the theme directory first, then plugins one by one, etc.
|
# ? Oct 15, 2015 14:38 |
|
Try going to $url/index.php. If that works then you have a problem with your .htaccess file.
|
# ? Oct 15, 2015 15:53 |
|
fuf posted:So a fresh WP install works fine? Fresh install works fine but if change the wp-config.php to use the imported database, I get the white screen. Should I leave the wp-config.php as is and import the old database into the one I set WP up with when I do the new install? As far as the URL changing, I did HOSTS file entries on my workstation and the VM to point the IP address of the VPS to xyz.com and https://www.xyz.com should that be enough? The database entries in the options table for siteurl and home both say 'xyz.com' Blinkz0rz posted:Try going to $url/index.php. If that works then you have a problem with your .htaccess file. The archived site uses this for a .htaccess file: code:
code:
Edit: just puke me out a drat error message! Bob Morales fucked around with this message at 16:48 on Oct 15, 2015 |
# ? Oct 15, 2015 16:21 |
|
Bob Morales posted:
Hmmm you could try but I guess whatever problem in the DB which is causing the white screen will just be copied over too? There must be a PHP error log somewhere. Try adding this to wp-config.php and check if it generates a debug.log file in wp-content/ : code:
|
# ? Oct 15, 2015 16:52 |
|
Bob Morales posted:
Your rewrites are hosed. There's no reason whatsoever your site should be giving a permanent redirect. Double check your Apache/Nginx settings.
|
# ? Oct 15, 2015 17:47 |
|
Blinkz0rz posted:Your rewrites are hosed. There's no reason whatsoever your site should be giving a permanent redirect. Double check your Apache/Nginx settings. WP does a 301 redirect from /index.php to / by default. It's the "redirect_canonical" function in wp-includes/canonical.php. It's a way of avoiding duplicate content. Don't think this is what's causing Bob's problem.
|
# ? Oct 15, 2015 18:19 |
|
fuf posted:Hmmm you could try but I guess whatever problem in the DB which is causing the white screen will just be copied over too? Blinkz0rz posted:Your rewrites are hosed. There's no reason whatsoever your site should be giving a permanent redirect. Double check your Apache/Nginx settings. I had the old .htaccess in there still which was causing that (drat hidden files), I just removed it.
|
# ? Oct 15, 2015 18:33 |
|
Update on where I'm currently at: I deleted what I had done so far and started over. This time I downloaded Wordpress 4.1.7 which is what the site was running on. Base install works. Changed the database info around to the database that I imported. As soon as I do that, the white screen comes back. However, this time I was able to login through /wp-admin. I had to change the password of the admin user with MySQL and I am able to get into the dashboard. I can see all the old articles (I mean posts, I'm warped from dealing with Joomla!11) and such. There are 2 plugins but they are both inactive. Now what? Still no loving errors. Edit: Oh boy I activated a theme (since the one it was showing as active was blank) and it works! Now I think I just need to copy over the theme from the old site. Theme is busted somehow. Activating it breaks the site instantly. Live preview doesn't work either. I should be good from here. "PHP Fatal error: Call-time pass-by-reference has been removed in ... on line 30" So either hack the theme up or install PHP 5.3... Fixed that one error and the theme mostly works. Thanks for the help, Goons. Bob Morales fucked around with this message at 19:35 on Oct 15, 2015 |
# ? Oct 15, 2015 18:35 |
|
Bob Morales posted:
Are you sure it white screens with the default Twenty Fifteen theme? e: just saw your edit e2: Bob Morales posted:I had the old .htaccess in there still which was causing that (drat hidden files), I just removed it. The .htaccess you posted above is just the default file that WP creates so that permalinks work. You'll want to put it back at some point. fuf fucked around with this message at 18:47 on Oct 15, 2015 |
# ? Oct 15, 2015 18:44 |
|
What could be causing images to randomly load or appear as broken? My guess is because the NGO I'm working with has opted for cheap GoDaddy hosting?
|
# ? Oct 17, 2015 20:58 |
|
We're using godaddy and we've never experienced anything by that description. There's very few things that are "random", so you've probably got a conflict of two resources going on somewhere. With "random" things, cache is usually the first port of call. If you're using the wordpress hosting like we are, login to your admin and be sure to hit "Flush Cache" in the admin bar. That'll flush the server-side cache but you might still have client-side cache'd stuff, so open up dev tools (F12) and be sure to force flush your local cache too. If you're still seeing intermittent images; narrow it down. Look at the net tab and see if the images are coming up 404. If they are, try opening them in a new tab and refreshing a few times. Do they appear then disappear? Something is up with your server-side. Next stop would probably be something cache or redirect related in your .htaccess, but that seems unlikely. Not seeing 404? Not seeing an image request at all? Might be something upstream of the image like the HTML or CSS. Check your source. Check your theme.
|
# ? Oct 18, 2015 23:06 |
|
Is it possible to have custom pages generated, from database entries, on the fly based on the URL that someone is trying to visit? So for example, if I have a database table with office details, I can browse to domain.com/offices/newyork or domain.com/offices/london and the page will display relevant names, addresses etc for that office? I've been looking at various simple guides for creating page templates but they all seem to assume that the pages will be created manually from the template. I have hundreds and potentially thousands of entries that I'd like to handle this way so creating them manually would be a real pain in the neck.
|
# ? Oct 26, 2015 16:10 |
|
Mr Crucial posted:Is it possible to have custom pages generated, from database entries, on the fly based on the URL that someone is trying to visit? This is already exactly how wordpress works? It's not totally clear what you're asking. Do you mean you already have a database of office details that you're trying to render somehow? WP probably isn't the best choice for that. If you just want to add details like "Office Address" and have them show up consistently then you could do this: * Create a custom post type called "office" * Add a bunch of custom fields (Office Name, Office Address, etc.) to this post type (probably using the Advanced Custom Fields plugin) * Create a template file called single-office.php that defines where these custom fields are displayed on the page fuf fucked around with this message at 17:49 on Oct 26, 2015 |
# ? Oct 26, 2015 17:41 |
|
fuf posted:Do you mean you already have a database of office details that you're trying to render somehow? WP probably isn't the best choice for that. Sorry, could have been clearer. It's a pre-existing database. What I'd like to do is create a new table within the the WP database (or a new database if that's considered 'better'), import my data, then have some sort of post or page template that queries the database based on the URL. I found this series of guides that does roughly what I'm on about, this technique allows you to treat the URL as a set of parameters, then plug those parameters into a query: http://www.whatmarkdid.com/php/reading-custom-url-parameters-wordpress/ http://www.whatmarkdid.com/php/displaying-data-custom-table-wordpress/ http://www.whatmarkdid.com/php/displaying-child-records-custom-mysql-table-wordpress/ I'll try that and see if it works.
|
# ? Oct 26, 2015 22:02 |
|
Why would you do that in WordPress? It doesn't sound like you want to use any of the functionality WordPress offers besides templating (sorta). I've got to believe there are better tools for the job. If I were you I'd be asking for recommendations for a PHP/SQL framework (if those are the languages you actually want to use). Querying a database based on URL is not a difficult task without a CMS.
|
# ? Oct 27, 2015 16:38 |
|
Like someone above, I'm using one of those overloaded themes that offer everything and the kitchen sink and it actually does a decent job at that, but it every so often inexplicably fails to load any of the CSS that provides the site's layout. At first I thought it was the client's host crapping out, but then I noticed it on a completely different host. Anyone have any experience with this? Anything I can do to more accurately diagnose the problem?
|
# ? Oct 27, 2015 17:25 |
|
What's in the error logs? In my experience, Wordpress inconsistently doing a silent failure of any kind tends to mean you're running out of memory.
|
# ? Oct 27, 2015 17:27 |
|
rt4 posted:What's in the error logs? In my experience, Wordpress inconsistently doing a silent failure of any kind tends to mean you're running out of memory.
|
# ? Oct 27, 2015 17:45 |
|
Are the CSS links appearing in the HTML and then erroring on load or are they simply absent from the document?
|
# ? Oct 27, 2015 18:34 |
|
rt4 posted:Are the CSS links appearing in the HTML and then erroring on load or are they simply absent from the document?
|
# ? Oct 27, 2015 18:51 |
|
|
# ? May 8, 2024 07:08 |
|
I have a site that sucks. It's not wordpress. I'm makinga new site with wordpress. It doesn't suck as much. It's under <url.com/SomeFolder>. Is this still the correct way to allow the new site overtake the old site? It was published in 2011 so I'm a bit weary. http://askwpgirl.com/how-do-i-move-wordpress-from-a-subdirectory-to-the-root-directory/
|
# ? Oct 29, 2015 06:39 |