Fourjays
Members-
Posts
10 -
Joined
-
Last visited
Everything posted by Fourjays
-
How to avoid duplicate content with this structure?
Fourjays replied to Fourjays's topic in General Support
Thanks. Think I'm probably going to go with the portal. Good tip on the limit and start too. -
How to avoid duplicate content with this structure?
Fourjays replied to Fourjays's topic in General Support
Yea, SEO is my primary concern. I think that duplicate content from a user perspective can be solved. Maybe I'm trying to over-complicate things a bit, but what I'm sort of trying to achieve is to have "Home" be "Products" and then have "Blog" be alongside "Home" and not a child of it. Visibly I can do it. But in the Sitemap and SEO-wise it seems that "Home" and "Products" would appear as duplicates (although could probably modify the sitemap to ignore it as well). Might be easier for me to stop trying to do something so weird and to just treat "Home" as a portal to the other two though. -
I am making a small site to show off the apps and games I am going to be making. I don't really have anything different to say on my home page and just want to show my products there in their entirety (with some fancy AJAX scrolling loader thing when it gets longer ). I am managing to do this quite easily due to the great API that ProcessWire has. The site structure is as follows: - Home -- Products (paginated) --- Product 1 --- Product 2 --- ...etc... -- Blog (paginated) --- Post 1 --- Post 2 --- ...etc... -- Contact With this I am concerned about duplicate content. This structure feels the most correct and relevant way to handle the content (as opposed to having the products as direct children of "Home" alongside "Blog" and "Contact" which feels illogical). This structure also works better if the AJAX loader isn't available for a user (accessibility, no JS, etc) as I can display a bog standard link to "products/page2". However, it seems Home and Products are going to have duplicate content. Is there a better way to handle this? Serve a simplified list on Products? Leave them the same but serve a "canonical link" tag in the head? Or am I worrying about nothing? Another side issue with this is that the menu shows both "Home" and "Products". I could hide "Products" via the admin, but this also hides it (and its children) in the Sitemap which may not be ideal (unsure)? Any advice or tips on how to handle this structure best would be greatly appreciated.
-
This is what it gives me and what I copied to the header. All the paths look fine though. The CSS files are in projectname/site/templates/styles and that is what it puts in the "b" argument. <link href="<?php echo $config->urls->siteModules; ?>Minify/min/b=<?php echo trim($config->urls->templates, '/'); ?>/styles&f=reset.css,base.css,main.css,anim.css" rel="stylesheet" type="text/css" />
-
Anyone got any ideas on what would cause this to return a "400 Bad Request" error? I gave it a go earlier and all I got was this error on the link that should have given the combined CSS. I checked the link provided in the error (to the Minify docs) and installed FirePHP as suggested, but it doesn't give any more information in the console. Running on a localhost setup if that could be related.
-
Unable to complete request... no error log, debug or email.
Fourjays replied to Fourjays's topic in General Support
How very annoying... it works without explanation. I uploaded my local files via FTP, and that worked. I then downloaded a zip from the repo and uploaded that via FTP, which also worked. I then created a new directory and cloned the repo to there, and it also worked. But still the broken site wouldn't respond, and Git seemed to think it was the same as the repo. So I deleted it, recreated the directory and cloned the repo again... and it worked! Yet that is exactly how it was created in the first place. Hate it when something gets fixed without any "real" explanation. Can only guess a file was corrupted as suggested by Soma. Thanks for your help. At least got my looking in the right places. -
Unable to complete request... no error log, debug or email.
Fourjays replied to Fourjays's topic in General Support
Pulled from Bitbucket. It is my own repo for work I do on templates. I've gone through the folders of the one that isn't working one by one comparing file permissions with the working copy. Everything is there, although I had to manually create the various assets directories. I'll try uploading the same set of files via FTP tomorrow to rule out the Git repo. No error logged with debug mode on (doesn't even create the file), no email sent, no errors output. I've gone into php.ini and set display_errors to "On" and restarted httpd, but that made no difference (unless I've got the wrong php.ini, but I'll double check that tomorrow). There is APC on the server, but the original install of ProcessWire has no problems, so I doubt that is it... I thought I might be editing the wrong site several times too, but I'm not. Just confirmed it by adding some text to the error message in ProcessWire.php, which showed up. Nope, that additional message doesn't show up with the email notification enabled. And the config.php is an exact copy from the working install. To all intents and purposes the site that is broken is exactly the same as the one that is already working on the same server... is just in a different place and "uploaded" via a different method. Which is what makes it so odd. It is ProcessWire 2.2. -
Unable to complete request... no error log, debug or email.
Fourjays replied to Fourjays's topic in General Support
Nope, MySQL is running. The working copy and the broken copy use the same database, server (VPS), etc. Just located on different sub-domains/directories and created differently (working one uploaded, installer run - second one pulled from a git repo created from the first). -
Unable to complete request... no error log, debug or email.
Fourjays replied to Fourjays's topic in General Support
I've just tried cloning the git repo to a subdomain instead of a directory, but it made no difference. -
Hi, ProcessWire has been great so far when developing locally and uploading via SFTP to a development server. However, I have now switched to using git deployment for my site and have hit a brick wall with "Unable to complete this request due to an error." I've read the thread about what to check, except I am getting no messages in the error log, turning debug on doesn't change anything and I'm not receiving any email. I'll go into details... When I first tried ProcessWire I just edited files via my IDE and had it upload them via SFTP. The installer was run on the development server. This worked great and that copy remains fully functional. While doing this, I was also commiting everything to git. (I'd usually develop on a local server then FTP files to the server when done, but I've been trying new development methods recently.) At the start of this week I decided I'd prefer to develop on a local server so I set that up, pointed it where the files had been edited locally and everything immediately ran fine (no installation required) with the necessary database alterations in config.php. I continued commiting to git. Today I decided I'd try pulling the files from git to the development server, instead of using SFTP, so I can take full advantage of the version control. I did this to a new subdomain and directory so it didn't affect the previous development server installation (in case things went wrong). I edited the config with the database settings and tried to run it. And all I get from it is the "Unable to complete this request due to an error." message. It is the exact same server and database as the previous development server installation - all that is different is it was pulled from a git repo and I didn't run the installer (which didn't matter for the local server). I enabled debug mode and set an email address in the config... I get nothing other than that same message, and no emails are received. I've checked assets/logs/errors.txt and I get nothing there either (I even created the file manually and made sure permissions were the same as on the working copy). Ok, so I started looking at different between the two copies on this server... I've ensured file permissions and ownership are the same. The config file is where it should be. I've even copied the whole assets directory from the working copy to the broken copy... no change. The only other difference is the location. The local copy is at localhost/mysite, the working development server copy is at dev.mysite.com and the broken development server copy is at dev2.mylivesite.com/mysite. Ideas? Thanks