Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
 
  • Post
  • Reply
spiritual bypass
Feb 19, 2008

Grimey Drawer

down with slavery posted:

You shouldn't need to replace to filesystem path.

That's what I thought too, until I worked on some sites that used those awkward abstract themes that stores all kinds of random poo poo in serialized arrays in the DB. All the widgets and a ton of custom CSS just disappeared upon migration! It took me way too much effort to figure out what had actually happened.

Adbot
ADBOT LOVES YOU

down with slavery
Dec 23, 2013
STOP QUOTING MY POSTS SO PEOPLE THAT AREN'T IDIOTS DON'T HAVE TO READ MY FUCKING TERRIBLE OPINIONS THANKS

rt4 posted:

That's what I thought too, until I worked on some sites that used those awkward abstract themes that stores all kinds of random poo poo in serialized arrays in the DB. All the widgets and a ton of custom CSS just disappeared upon migration! It took me way too much effort to figure out what had actually happened.

Yeah I should say that I'm talking about a vanilla wordpress install. God help you if you're trying to port some kind of customized monstrosity. When we get clients who have setups like that we tell them that it's time to start over ;) Wordpress really starts to fall apart once you get past a basic blog/collection of landing pages

Chris!
Dec 2, 2004

E

rt4 posted:

Nah, it's not hard. Post again if you get lost!

Hello!

I've copied the files over, created the database then imported the old database, installed Wp using the files from the original install. It seems to have half worked - WP is all there, the themes are all there, the custom fields and data within have all imported - however, all media files (which are definitely present, I can see them in wp-includes > uploads in the folder) aren't showing as uploaded. I've tried importing via WP Import as well, and it basically says "media failed to import..." for every file.

This is a property website, with 1000's of images, all the properties are imported (with the description, address, etc), but the corresponding photos aren't visible? (Neither are stuff like logos, icons etc).

Have I done something wrong?

thegasman2000
Feb 12, 2005
Update my TFLC log? BOLLOCKS!
/
:backtowork:
Anyone using woocommerce? Really need it to produce a pick list. It this case an actual pick as its its for an organic farm! He currently prints all the orders off, writes a tally chart for each item and then goes and pick the veg but surely woocommerce can do this no?

Heskie
Aug 10, 2002

Chris! posted:

I can see them in wp-includes > uploads in the folder) aren't showing as uploaded.

This is probably a typo but in case its not, the uploads folder should be in wp-content by default.

Otherwise I'm not sure off the top of my head, sorry!

thegasman2000 posted:

Anyone using woocommerce? Really need it to produce a pick list. It this case an actual pick as its its for an organic farm! He currently prints all the orders off, writes a tally chart for each item and then goes and pick the veg but surely woocommerce can do this no?

I need to do something similar I think. I'm building a store for hand-made jewellery and need to create a list of line items from unprocessed orders so the client knows which items to make (3 different orders could have the same product, so they know to make 3 of those etc). I'm guessing this is similar to your farmer's picking?

I've not looked into it yet but my plan is to use a custom WP query to filter the line items and create a table in the admin using the data, probably on a separate option page within the WooCommerce menu. I don't think its something you can get by default.

Chris!
Dec 2, 2004

E

Heskie posted:

This is probably a typo but in case its not, the uploads folder should be in wp-content by default.

Otherwise I'm not sure off the top of my head, sorry!


Thanks for the reply! Yes, just a typo, all the media's there in wp-content > Uploads, but not showing in the dashboard under media. I can re-upload them, but then they're on the server twice, and still not attached to the relevant post or whatever (and there're 1000s).

Heskie
Aug 10, 2002

Chris! posted:

Thanks for the reply! Yes, just a typo, all the media's there in wp-content > Uploads, but not showing in the dashboard under media. I can re-upload them, but then they're on the server twice, and still not attached to the relevant post or whatever (and there're 1000s).

I've just done a quick Google and a couple of suggestions came up:
  • Check the permissions for the uploads folder/files. Generally speaking these should be 755 for folders and 644 for files, unless you have a more security conscious set up with different users etc.
  • Try re-saving your settings under Settings > Media, apparently this can 'flush' some problems. Try this too with the permalinks.
  • Someone mentioned about issues with functions.php. I doubt this could be it but maybe turn on error reporting and see if anything shows up.

thegasman2000
Feb 12, 2005
Update my TFLC log? BOLLOCKS!
/
:backtowork:

Heskie posted:

I need to do something similar I think. I'm building a store for hand-made jewellery and need to create a list of line items from unprocessed orders so the client knows which items to make (3 different orders could have the same product, so they know to make 3 of those etc). I'm guessing this is similar to your farmer's picking?

I've not looked into it yet but my plan is to use a custom WP query to filter the line items and create a table in the admin using the data, probably on a separate option page within the WooCommerce menu. I don't think its something you can get by default.

Yeah its the same use. If you do make this simple please make it a plugin! Its a real lacking feature.

Chris!
Dec 2, 2004

E

Heskie posted:

I've just done a quick Google and a couple of suggestions came up:
  • Check the permissions for the uploads folder/files. Generally speaking these should be 755 for folders and 644 for files, unless you have a more security conscious set up with different users etc.
  • Try re-saving your settings under Settings > Media, apparently this can 'flush' some problems. Try this too with the permalinks.
  • Someone mentioned about issues with functions.php. I doubt this could be it but maybe turn on error reporting and see if anything shows up.

Thanks for looking into it for me, I appreciate it! I've just re-imported the data, and this time it took about 20 minutes (as opposed to ~30 seconds before); I may have forgotten to tick "Download and import file attachments" the first time. Seems to have worked now!

Heskie
Aug 10, 2002

Chris! posted:

Thanks for looking into it for me, I appreciate it! I've just re-imported the data, and this time it took about 20 minutes (as opposed to ~30 seconds before); I may have forgotten to tick "Download and import file attachments" the first time. Seems to have worked now!

Ahh nice one. I had that issue when importing sample WooCommerce data. Glad you sorted it.

fuf
Sep 12, 2004

haha
Anyone know of a WP theme (non-free is fine) that looks vaguely like this?
http://www.kkd.co.uk/
Trying to save some work.

Chris!
Dec 2, 2004

E

fuf posted:

Anyone know of a WP theme (non-free is fine) that looks vaguely like this?
http://www.kkd.co.uk/
Trying to save some work.

I mean you said "vaguely":

http://themeforest.net/item/simple-article-wordpress-theme-for-personal-blog/8099933?WT.ac=search_item&WT.z_author=GoodLayers

fuf
Sep 12, 2004

haha
Close enough! Thanks
(still open to other suggestions though)

kedo
Nov 27, 2007

I have a client that's big on displaying related posts or pages in sidebars on pages. He likes having precise control over it (he doesn't like anything to be automated), so I currently have ACF relationship fields set up on every single page and post on his site which allows him to choose exactly which post shows up where.

However now he wants to be able to display related content on archive and category pages, which I don't think is going to be possible for me to do the same way since those pages can't have custom fields attached to them.

Any ideas for plugins or techniques that would work well here?

streetlamp
May 7, 2007

Danny likes his party hat
He does not like his banana hat
What about putting some ACF fields on an options page and then just include them in the archive template?

kedo
Nov 27, 2007

streetlamp posted:

What about putting some ACF fields on an options page and then just include them in the archive template?

That looks like that could work pretty well, didn't even think to look at their add-ons. :doh: Thanks!

Spatulater bro!
Aug 19, 2003

Punch! Punch! Punch!

What's the best way to show unique "current navigation" menus on each page? If I click on a top-level item, say "Item2" (or any of its sub-items), and navigate to that page, I want to see a side menu with Item2 at the top and all of Item2's sub-items under it.

I've used the Page Specific Navigation plugin and it does the job, but it's a royal pain in the rear end, because by default it shows every item, and on every page you have to manually check the items you don't want to see on that page. So if you add a new page you have to go back to every other page and uncheck the new item.

Gyshall
Feb 24, 2009

Had a couple of drinks.
Saw a couple of things.
Breadcrumbs?

Spatulater bro!
Aug 19, 2003

Punch! Punch! Punch!

Gyshall posted:

Breadcrumbs?

Maybe? Do you have a specific plugin/technique in mind, or are you just suggesting the concept? I'm new to Wordpress development so there's likely something obvious I don't know about yet.

rugbert
Mar 26, 2003
yea, fuck you
Anyone know of a tutorial or plugin to add a button to the editor which would display a list of posts (of a specified post type), and allow you to select it and get the ID much like the link dialog works?

Gyshall
Feb 24, 2009

Had a couple of drinks.
Saw a couple of things.
Wordpress SEO by Yoast can do that

Weird Uncle Dave
Sep 2, 2003

I could do this all day.

Buglord
Someone just wanted to put a 130MB video file on one of their WordPress sites. This far exceeds the PHP file upload limit on my server, and I'm not inclined to change that, because your big video files really should go on YouTube, but politics.

Anyway, I had them upload a placeholder file (I think it was a renamed PDF) with the same file name, then I uploaded the real file via FTP and had it replace the placeholder.

This worked, except that the WordPress media library now thinks the file is 70K instead of 130M. It's a silly little cosmetic thing, but I'd like to fix it if I can. Is there an easy way to do so?

Disharmony
Dec 29, 2000

Like a hundred crippled horses lying crumpled on the ground

Begging for a rifle to come and put them down
The CSS of the theme I use adds a thick 5px black border/background on all of my images by default which sucks when I just want certain images to not have said border (like a transparent PNG).

How do I exclude a certain group of images from this style?

fuf
Sep 12, 2004

haha

Disharmony posted:

How do I exclude a certain group of images from this style?

give them all a border:none css rule that is more specific than whatever rule is giving the border?

like if the theme does:
code:
img {
   border: 5px solid black;
}
then you could add:

code:
.noBorder {
   border: none;
}
and image tags with that class won't have a border because the class rule is more specific than the element rule:
code:
<img class="noBorder" src="img.jpg">

fuf
Sep 12, 2004

haha
what's your favourite image slider plugin my gentle goons?

Malsgrein
Nov 29, 2005

fuf posted:

what's your favourite image slider plugin my gentle goons?

From what I've read, slick is a good choice.

e: oh you meant a Wordpress plugin. I dunno. You could package this one as a plugin if you like.

Chris!
Dec 2, 2004

E

Oggumogoggum posted:

From what I've read, slick is a good choice.

e: oh you meant a Wordpress plugin. I dunno. You could package this one as a plugin if you like.

I've heard slick is good, there is a wp plugin using it called Slidy, I tried it but couldn't get it to work - I was in a real hurry though, so didn't give much time to it.

I have used Owl Carousel which works well, but is SO heavy - from memory it loads 4-5 css files and 3-4 js files! Which seems really silly.

fuf
Sep 12, 2004

haha
Slidy works fine for me, and seems very good so far. Thanks both :)

kedo
Nov 27, 2007

Alright, NextGEN is a pile of poo poo and I hate it. Can anyone suggest a gallery plugin that would provide the following functionality while not being a pile of poo poo?

• Ability to create multiple galleries
• Galleries not tied to specific pages, but can be easily embedded on any page or post
• Ability to retrieve entire gallery as PHP object so I can create my own view and/or a robust templating system
• Titles & captions for images

Ether Frenzy
Dec 22, 2006




Nap Ghost
Wordpress people: Halp!

I have a client's site that WAS working perfectly until last night, at which point I did a few innocuous things on the admin panel that for the life of me cannot seem like they would have affected what the site currently is doing.

They asked to have Google Analytics tied to the site, so I installed the Google Analytics by Yoast plugin (I already had been using the SEO by Yoast), and while I was at it I updated the "Simple Subscribe" and "Instagram Feed" plugins, which were a single iteration out of date.

Not noticing anything wrong with the site's main page, I carried on my merry way, and decided to go above and beyond to connect the site to their google.com/webmastertools account as well.

I followed the directions to verify the site on register.com (for that is the shite host they insisted on using to save $12 a month over the Dreamhost suggestion I made 40 times leading up to tonight) which was a process where you create a new TXT Record with the Google verification code (for those familiar with register.com's control panel, once in the product (domain)'s page, under 'Advanced Technical Settings' , 'Edit TXT Records') -- added the new one, and then noticed that about half of my theme's functionality had ceased working.



Now, I'm not sure that the TXT record addition was the exact moment it all broke, but I can't see that a trusted Yoast plugin/updating two working plugins that work with my version of WP (4.0) would have broken 50% of my theme's functionality, especially after I disabled and deleted them.

I've tried just about everything I can think of to get it back to working.

I contacted register.com, they gave some canned wrong answer about GA code being in the footer when it should be in the header - checked that by looking at the source, false. I disabled and deleted the Yoast Google Analytics plugin anyway.

I contacted register.com again, they told me there was no 12-24 hour delay to change DNS settings or anything like that for a TXT record entry - and most of the site works fine including the index page, and the AJAX navigation sorting. It just will not display any of my Posts or any of my Recipes (a customized post template page.) it says 'Page not found' and loads the default home page.

Maybe there IS a 12-24 hour delay from doing the TXT record addition, but it's only been 5 hours since I quit messing with it? I didn't come away with great confidence that they knew what they were talking about. Just seems odd that the index and my AJAX sorting would work, but my links to everything else have turned into duds.

I've re-uploaded the entire theme multiple times, including using older known working versions.

The admin panel works fine, all my posts and recipes are still there, in the correct categories to work within my theme.

My permalink settings are still correctly setup to handle my theme's functions.

My template pages that handle the post and recipe functionality are all still there, and are all still in the correct Template style to make the theme work. I rebuilt one of them from scratch thinking maybe it just needed a kick - nope.

I've disabled every single plugin, still nothing - I find it unlikely that "Simple Subscribe" and "Instagram Feed" plugins could make my site half-work - if they broke it, they'd have fully broken it - and since my database seems fine and all my content is still there, I don't think the plugins have done anything to my db that could be the issue.

I checked the htaccess file, and the wp-config.php file - both seem fine.



So my #1 question is:
Should I attempt to re-install wordpress altogether via FTP or will this cause massive issues/gently caress my database up?

And if that's not a good plan, any other suggestions? If you need to see the site to troubleshoot, send me a PM if possible as I'd rather not share the URL publically.

fuf
Sep 12, 2004

haha
Just post the url dude, you can always edit it out later.

Unless I missed something you didn't actually say what's broken. What's the actual problem?

I can't imagine it's anything to do with the TXT record. That's a DNS Zone thing, nothing to do with your actual site.

Chris!
Dec 2, 2004

E
I know you've deactivated Yoast, but maybe it's changed a permalinks setting - this could screw with your posts displaying, especially if you're using a custom post type? I've had the same thing happen to me before, I kept getting 404's on posts and it was because Yoast had "prettified" permalinks or something, problem persisted even with Yoast gone until I fixed the permalink / post type issue.

Would be easier to know what's going on if we could see the site :)

streetlamp
May 7, 2007

Danny likes his party hat
He does not like his banana hat
you never really said what the exact problem was but if the landing page is displaying but nothing else that definitely sounds like a permalink issue

kedo
Nov 27, 2007

Hire a developer to help you. Seriously no offense intended, but it sounds like you have zero idea what you're doing and you'll probably end up going in circles in this thread.

Ether Frenzy
Dec 22, 2006




Nap Ghost
Thanks for the input guys, your permalink suggestions got me going on the right track. I sent a couple of you PM's with some more details but you can probably disregard as I *think* I've tracked down the issue.

After a LOT of research (I've been up working on this all night until 7 am twice in a row now, I'm meant to be on vacation), I really think something has changed with the register.com server configuration that has screwed this up -- the only thing I can think of right now is that perhaps FollowSymLinks and AllowOverride All are disabled in the server config. Also maybe mod_rewrite is not enabled.

I've got a support ticket out to register.com right now because their control panel is so impossible to use I can't tell if this is something I can fix myself (or if it's even something a user account has control over.)

When I use the default permalinks in WP, it works (but is bad for SEO) but when I try to use the custom (pretty) permalinks, it breaks, which makes me think mod_rewrite isn’t enabled or the .htaccess file isn’t being read. This happens on even a fresh WP/theme install of the site in a subdirectory on the same host, even without ever enabling the plugins I've been using. (Yoast)

I've got it set up using the default WP permalinks right now and everything is functioning "correctly".

I've had enough issues with register.com not letting me upload files smoothly and giving me canned/wrong answers to my questions that I may just move the hosting and solve this once and for all.

Chris!
Dec 2, 2004

E

Ether Frenzy posted:

Thanks for the input guys, your permalink suggestions got me going on the right track. I sent a couple of you PM's with some more details but you can probably disregard as I *think* I've tracked down the issue.

After a LOT of research (I've been up working on this all night until 7 am twice in a row now, I'm meant to be on vacation), I really think something has changed with the register.com server configuration that has screwed this up -- the only thing I can think of right now is that perhaps FollowSymLinks and AllowOverride All are disabled in the server config. Also maybe mod_rewrite is not enabled.

I've got a support ticket out to register.com right now because their control panel is so impossible to use I can't tell if this is something I can fix myself (or if it's even something a user account has control over.)

When I use the default permalinks in WP, it works (but is bad for SEO) but when I try to use the custom (pretty) permalinks, it breaks, which makes me think mod_rewrite isn’t enabled or the .htaccess file isn’t being read. This happens on even a fresh WP/theme install of the site in a subdirectory on the same host, even without ever enabling the plugins I've been using. (Yoast)

I've got it set up using the default WP permalinks right now and everything is functioning "correctly".

I've had enough issues with register.com not letting me upload files smoothly and giving me canned/wrong answers to my questions that I may just move the hosting and solve this once and for all.

I can sympathise with lovely host problems - I recently had a site hosted on my clients own hosting at names.co.uk and holy poo poo, I have never experienced such bad service and customer service. The site suddenly slowed to a crawl (like 20seconds to load anything}, then their customer support took 9 days to get back to me, only after I went nuts at them on Twitter, and basically said 'the server's fine, your site's too complex'. Eventually ended up moving the site to Apis Networks based on a forum recommendation and it's now blisteringly fast (with great tech support).

Glad your site is working again!

Blinkz0rz
May 27, 2001

MY CONTEMPT FOR MY OWN EMPLOYEES IS ONLY MATCHED BY MY LOVE FOR TOM BRADY'S SWEATY MAGA BALLS
Anyone have suggestions for scaling Wordpress? I'm not talking about throwing more power at a single server; I'm talking about using load balancers and multizone hosting to scale on demand.

Database is no big deal. I can toss that in a high replication multi-AZ configuration and I'm good to go. Ditto with static files which can go to Amazon S3. The problem I'm running into is with plugins, themes, and user uploads.

Wordpress loves absolute references to the place that files are stored. To me, that means two possible solutions:

1. Use some sort of network-based filesystem to mount an S3 bucket.
2. Write a plugin that rewrites all URLs on a page to a corresponding structure in S3.

The problems with either of them are pretty apparent. As far as I can tell there's no reliable network-based filesystem that could achieve #1 with reasonable fault tolerance and hijacking every content outputting filter seems like it would introduce obscene overhead.

I'm worried that this is a problem without a decent solution. Anyone care to weigh in?

tater_salad
Sep 15, 2007


Chris! posted:

I work in localhost, then use the Duplicator plugin to move the site to a production server - that plugin automatically fixes and changes permalinks etc to point to the new site address (and makes everything very easy).

are you aware of anything like this for joomla. I normally use wp but due to the need for cuatomized menus and client purchased theme I need to use joomla (which I do not love)

Weird Uncle Dave
Sep 2, 2003

I could do this all day.

Buglord

Blinkz0rz posted:

Anyone have suggestions for scaling Wordpress? I'm not talking about throwing more power at a single server; I'm talking about using load balancers and multizone hosting to scale on demand.

Database is no big deal. I can toss that in a high replication multi-AZ configuration and I'm good to go. Ditto with static files which can go to Amazon S3. The problem I'm running into is with plugins, themes, and user uploads.

Wordpress loves absolute references to the place that files are stored. To me, that means two possible solutions:

1. Use some sort of network-based filesystem to mount an S3 bucket.
2. Write a plugin that rewrites all URLs on a page to a corresponding structure in S3.

The problems with either of them are pretty apparent. As far as I can tell there's no reliable network-based filesystem that could achieve #1 with reasonable fault tolerance and hijacking every content outputting filter seems like it would introduce obscene overhead.

I'm worried that this is a problem without a decent solution. Anyone care to weigh in?

I'm working on something similar at my work, and I used Amazon for my proof-of-concept. I made a Web server template, that mounts /etc/httpd/conf.d and /var/www/html over the network, from a group of Gluster file servers. I had three Gluster instances, in three different availability zones, with quorum required for writes (but not reads), and everything worked pretty well. I couldn't tell any difference between that, and a local file system, in terms of Web server performance after a couple minutes of warm-up for the Web servers.

Adbot
ADBOT LOVES YOU

fuf
Sep 12, 2004

haha
Anyone got a good plugin to capture emails from a "Enter your email to receive our news" type input box? I don't need to do anything with the emails, just add them to a list somewhere in the admin panel.

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply