Author Topic: Website development and design troubleshooting/ question  (Read 69338 times)

Offline Sport

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 2375
  • Total likes: 103
  • DansDeals.com Hat Tips 1
    • View Profile
I'll start:
I have a WP website and recently, when I try to visit one of the pages I get the following message: This webpage has a redirect loop.
 Anybody have advice on how to fix this. I'm pretty much a novice when it comes to website development, so any help in layman's terms will be appreciated.
TIA

Offline yesitsme

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Dec 2014
  • Posts: 5130
  • Total likes: 2241
  • DansDeals.com Hat Tips 4
  • Gender: Male
    • View Profile
Re: Website development and design troubleshooting/ question
« Reply #1 on: May 14, 2015, 11:45:56 PM »
you can try this
1. Sign into a WordPress admin account for your website.



2. In the WordPress dashboard under the Settings tab on the left sidebar, select Permalinks.



3. In the Common Settings briefly select a different setting for your permalink structure and then select your original permalink setting and click the Save Changes button at the bottom of the page.

["-"]

Offline Sport

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 2375
  • Total likes: 103
  • DansDeals.com Hat Tips 1
    • View Profile
Re: Website development and design troubleshooting/ question
« Reply #2 on: May 15, 2015, 09:47:19 AM »
you can try this
1. Sign into a WordPress admin account for your website.



2. In the WordPress dashboard under the Settings tab on the left sidebar, select Permalinks.



3. In the Common Settings briefly select a different setting for your permalink structure and then select your original permalink setting and click the Save Changes button at the bottom of the page.
Seems simple enough, I'll try this and report back. Thanks

Offline Sport

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 2375
  • Total likes: 103
  • DansDeals.com Hat Tips 1
    • View Profile
Re: Website development and design troubleshooting/ question
« Reply #3 on: May 15, 2015, 10:56:18 AM »
you can try this
1. Sign into a WordPress admin account for your website.



2. In the WordPress dashboard under the Settings tab on the left sidebar, select Permalinks.



3. In the Common Settings briefly select a different setting for your permalink structure and then select your original permalink setting and click the Save Changes button at the bottom of the page.
Thanks but this didnt work. Any other suggestions ?

Offline Sport

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 2375
  • Total likes: 103
  • DansDeals.com Hat Tips 1
    • View Profile
Re: Website development and design troubleshooting/ question
« Reply #4 on: May 15, 2015, 11:56:08 AM »
I figured it out. Played around with some of the settings on the page.
This was after changing some of the coding in the c-Panel file manager,( as suggested by some website) didnt work.

Offline smurf

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Sep 2010
  • Posts: 4588
  • Total likes: 373
  • DansDeals.com Hat Tips 8
    • View Profile
  • Location: NJ
Re: Website development and design troubleshooting/ question
« Reply #5 on: June 04, 2015, 01:21:35 AM »
I have a HTML form that has an onsubmit event that should trigger a Javascript function. the function does some cleanup on the form values before submitting it
 the function triggers fine in Chrome and FF but not in ie.

the syntax is

<form id="myform" class="inline-form" name="myform" action="url" method="post" onSubmit="before_submit()" autocomplete="off">

In chrome and FF the function "before_submit()" fires while in IE it posts the form without running the function??

TIA

Offline yesitsme

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Dec 2014
  • Posts: 5130
  • Total likes: 2241
  • DansDeals.com Hat Tips 4
  • Gender: Male
    • View Profile
["-"]

Offline smurf

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Sep 2010
  • Posts: 4588
  • Total likes: 373
  • DansDeals.com Hat Tips 8
    • View Profile
  • Location: NJ
Re: Website development and design troubleshooting/ question
« Reply #7 on: June 04, 2015, 01:56:18 AM »
what is the js code?

can't post the function right now. But that definitely isn't the problem.
The solution I have so far is that I have "return verify()" that I use in the onclick of the submit button that makes sure all the fields are filled. When I put the before_submit() caller in the verify() function it works.
Seems like ie handles form.onsubmit functions differently.

Offline yesitsme

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Dec 2014
  • Posts: 5130
  • Total likes: 2241
  • DansDeals.com Hat Tips 4
  • Gender: Male
    • View Profile
Re: Website development and design troubleshooting/ question
« Reply #8 on: June 04, 2015, 02:17:17 AM »
can't post the function right now. But that definitely isn't the problem.
You're right IE is the problem. ;)

do you have a return false?
Quote
If the event handler is called by the onsubmit attribute of the form object, the code must explicitly request the return value using the return function, and the event handler must provide an explicit return value for each possible code path in the event handler function.

Also: http://stackoverflow.com/a/18480055/4535386
["-"]

Offline JoeyShmoe

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Nov 2014
  • Posts: 1286
  • Total likes: 254
  • DansDeals.com Hat Tips 0
  • Gender: Male
    • View Profile
  • Location: Lakewood
Re: Website development and design troubleshooting/ question
« Reply #9 on: June 04, 2015, 01:18:17 PM »
can't post the function right now. But that definitely isn't the problem.
The solution I have so far is that I have "return verify()" that I use in the onclick of the submit button that makes sure all the fields are filled. When I put the before_submit() caller in the verify() function it works.
Seems like ie handles form.onsubmit functions differently.

Are you sure that the function isn't firing? Maybe it's going through it and isn't finding any errors for whatever reason? Adding a
Code: [Select]
console.log('test'); anywhere in the function should be able to confirm that.
DDF A-Z Link Extension
Chrome
Firefox
Info

Offline smurf

  • Dansdeals Presidential Platinum Elite
  • ********
  • Join Date: Sep 2010
  • Posts: 4588
  • Total likes: 373
  • DansDeals.com Hat Tips 8
    • View Profile
  • Location: NJ
Re: Website development and design troubleshooting/ question
« Reply #10 on: June 04, 2015, 07:38:10 PM »
Are you sure that the function isn't firing? Maybe it's going through it and isn't finding any errors for whatever reason? Adding a
Code: [Select]
console.log('test'); anywhere in the function should be able to confirm that.
I put an alert() as the first line of the function and nothing. It's like YIM said
You're right IE is the problem. ;)

do you have a return false?
Also: http://stackoverflow.com/a/18480055/4535386
It looks like the onsubmit in IE can only handle Return True/false. Whereas I simply wanted to execute the function

Offline yesitsme

  • Dansdeals Lifetime Presidential Platinum Elite
  • *********
  • Join Date: Dec 2014
  • Posts: 5130
  • Total likes: 2241
  • DansDeals.com Hat Tips 4
  • Gender: Male
    • View Profile
Re: Website development and design troubleshooting/ question
« Reply #11 on: June 04, 2015, 10:53:06 PM »
I you copy paste your JS than people could try to help you do it right, other wise go figure it out. just saying
["-"]

Offline etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 13331
  • Total likes: 3994
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Website development and design troubleshooting/ question
« Reply #12 on: August 12, 2015, 12:50:05 PM »
Is there a way to search my wordpress Uploads folder, to clean out any files that are not referenced anywhere on my site?
TY
Workflowy. You won't know what you're missing until you try it.

Offline JoeyShmoe

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Nov 2014
  • Posts: 1286
  • Total likes: 254
  • DansDeals.com Hat Tips 0
  • Gender: Male
    • View Profile
  • Location: Lakewood
Re: Website development and design troubleshooting/ question
« Reply #13 on: August 12, 2015, 01:08:14 PM »
Is there a way to search my wordpress Uploads folder, to clean out any files that are not referenced anywhere on my site?
TY

Try this from SO
DDF A-Z Link Extension
Chrome
Firefox
Info

Offline etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 13331
  • Total likes: 3994
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Website development and design troubleshooting/ question
« Reply #14 on: August 12, 2015, 01:12:53 PM »
Try this from SO
Will it also find images that are used on custom pages, or even hardcoded into PHP (I know, I know...)?
Workflowy. You won't know what you're missing until you try it.

Offline JoeyShmoe

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Nov 2014
  • Posts: 1286
  • Total likes: 254
  • DansDeals.com Hat Tips 0
  • Gender: Male
    • View Profile
  • Location: Lakewood
Re: Website development and design troubleshooting/ question
« Reply #15 on: August 12, 2015, 01:16:28 PM »
Will it also find images that are used on custom pages, or even hardcoded into PHP (I know, I know...)?

I would assume not, since my guess is that it checks the DB for references (I may be wrong though!). Just curious, why do you want to delete all of the unused images? They don't change load time on your website, and I doubt that you have so many images that your server is full, if that's the case, then you need to rethink the way you do images.
DDF A-Z Link Extension
Chrome
Firefox
Info

Offline etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 13331
  • Total likes: 3994
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Website development and design troubleshooting/ question
« Reply #16 on: August 12, 2015, 01:41:32 PM »
I would assume not, since my guess is that it checks the DB for references (I may be wrong though!). Just curious, why do you want to delete all of the unused images? They don't change load time on your website, and I doubt that you have so many images that your server is full, if that's the case, then you need to rethink the way you do images.
Server is not full (AFAIK). But every time I download/backup wp-content to refresh my dev site, it goes through tons of images, and I doubt they are all used.

Is there a better way to run a dev site?
Workflowy. You won't know what you're missing until you try it.

Offline JoeyShmoe

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Nov 2014
  • Posts: 1286
  • Total likes: 254
  • DansDeals.com Hat Tips 0
  • Gender: Male
    • View Profile
  • Location: Lakewood
Re: Website development and design troubleshooting/ question
« Reply #17 on: August 12, 2015, 01:44:06 PM »
Server is not full (AFAIK). But every time I download/backup wp-content to refresh my dev site, it goes through tons of images, and I doubt they are all used.

Is there a better way to run a dev site?

You can download everything besides your images folder
DDF A-Z Link Extension
Chrome
Firefox
Info

Offline etech0

  • Dansdeals Lifetime 10K Presidential Platinum Elite
  • *******
  • Join Date: Dec 2013
  • Posts: 13331
  • Total likes: 3994
  • DansDeals.com Hat Tips 1
    • View Profile
  • Location: not lakewood
  • Programs: DDF
Re: Website development and design troubleshooting/ question
« Reply #18 on: August 12, 2015, 02:10:04 PM »
You can download everything besides your images folder
True. It's a little more effort but probably worth it.

I wonder if there's a better way to run a dev site than copying over the files and DB.
Workflowy. You won't know what you're missing until you try it.

Offline JoeyShmoe

  • Dansdeals Lifetime Platinum Elite
  • *******
  • Join Date: Nov 2014
  • Posts: 1286
  • Total likes: 254
  • DansDeals.com Hat Tips 0
  • Gender: Male
    • View Profile
  • Location: Lakewood
Re: Website development and design troubleshooting/ question
« Reply #19 on: August 12, 2015, 02:15:57 PM »
True. It's a little more effort but probably worth it.

I wonder if there's a better way to run a dev site than copying over the files and DB.

Definitely, your website should start locally be fully subversioned and only then uploaded (either directly from the subversion or not), not the other way around.
DDF A-Z Link Extension
Chrome
Firefox
Info