I have a little problem with my website. My CSS file located in css/style.css who is empty doesn't load when in my index.php located in public_html on cPanel loads.
I'm using a link that I've put:
link rel='stylesheet' type='text/css' href='css/style.css'
in head section but it doesn't load this one, instead it does load one from http://www.cssreset.com/ by Eric Meyer as you can see here while my style.css located in css/style.css is actually empty. http://theolt.getheb.com/css/style.css.
Can someone help me guys? I have absolutely no idea of why it does this, i'm using cPanel hosted on my friend's website getheb.com and even him doesn't know why it does this.
It's probably the cache on the web servers. In my experience I was making changes to my site using localhost and as I transfer it to the web it doesn't make any changes. The problem was it takes 12 hours for the web servers to propagate the new file. So maybe you should try to contact the hosting site and check if it's about the cache. When you delete a file then the file is still running on the live site then the problem is really the cache.
Related
Basically the whole site was like this when I took it: sitename.com/wp <- it was the official address of the whole site.
I tried moving all files from public_html/wp to just public_html. It didn't work of course. I gave up and deleted database and made my own and installed the wordpress once again. Now I am able to log in and even though I have access for example to this url: https://sitename.com/wp-admin/options-general.php I still am redirected to sitename.com/wp when I try to go to sitename.com. Is there an option to make it work normally?
There are a few places to see for this issue
First of all disable all the cache plugins if any and browser's cache
Secondly, check in wordpress settings the URLs that you have there (settings - general)
Make sure you have the default htaccess file, before that take a backup of everything
Maybe a site url would be helpful;
I installed plugin called force regenerate image but it didn't worked. photos are shown in list views but need to force regenerate the images many times. Its running fine in my localhost but in server its not loading how can i make it work fine ?
Try to analyze the log files on your server. It should contain clues on why it's not working. The location of your log files depends on your host. Contact your host if you have no idea where to find the log files.
The problem is that I have made a wordpress site on localhost, than I have copied everything to a 000webhost.com domain, changed every post and page IDs, but the site doesn't work on the domain after I log off my wordpress account.
The site has language change option which is works with a languageID cookie (value is 0 if english, and 1 if hungarian). I click on the flag of the language, the cookie value is change properly and the site language too, but when I load another page, the language stays the old. The page sees the cookies (I watched it in the Application->Cookies menu), and after a hard reload, the language changes. The path is / and I gave an expiration date too.
The other strange things is that if I overwrite the header.php file, the header won't change its contant on the pages exept the front page.
I can't upload the site's files cause they are very huge, but I can tell more things that could help you to solve my problem:
The pages have their own .php files with their slug (like page-some-slug.php)
The permalinks are like www.mysite.com/pagename
Everything works fine on localhost with or without logged in with my wordpress account
I have changed only the page and post ID-s in the code
I have changed the header.php files, but the header on the pages didn't changed even after hard reload the browser
If you could help, please help me!
As you mentioned that the WordPress script worked in your localhost and now it's not working on 000webhost.com a free web hosting services? right?
The issue is the free web host, They have restrict free users access for limited feature.
Maybe they don't allow .htaccess and session creation.
Most things are restricted, if your script works on localhost sure it will work live server. You need to get a paid hosting to unlock all the features.
You can confirm with the 000webhost.com, what are they restricted with free hosting users.
I am really new to Drupal and playing around with this existing Drupal site.
I did a FTP transfer of all the files to my local computer directory. I currently got it on a Vagrant box and I can access the site via http://192.168.56.101/html.
I can do http://192.168.56.101/html/anything-but-user and it brings me to the proper area on the site. However I can't do localhost/html/user, because it redirects me to the website URL rather than the local URL.
I tried clearing the cache (with Drush). I scanned all files in the system and changed the web url to the local URL [not sure if I need to do any other command], and I can't seem to find anything in the .htaccess files that would lead me to this.
The href="/user I would greatly appreciate any advice or help in figuring out this solution.
--UPDATED
There was a module called "Secure Pages" that was causing the user and registration links to be locked and static to prevent redirects to phishing sites. I had to disable this module using "drush pm-disable securepages" in the terminal.
Some typical items you may want to check:
Check if you get the same problem using another browser. If with another browser it works, then it is pretty sure a cookie problem. To solve that, delete the cookie in the browser where you have the problem.
Make sure "clean urls" is enabled. Refer to "https://drupal.stackexchange.com/questions/165029/clean-url-leads-to-duplicate-url-after-migration-to-another-hosting/165044?s=1%7C3.9647#165044" for more details on that.
Make sure the value of "base_url" is set correctly (in your settings.php).
If module Secure Pages is enabled, then try to (at least temporary) disable that moduel to see if it helps.
Apparently, there was a mod called "SecurePages" that was causing the URLs to be static to prevent someone from changing them and redirecting users to a phishing site.
I just change my css and js file then upload, but the changes do not show up in the browser. But, if i download that same file to my desktop and open it in a text editor, the changes are there.
I have been facing the same problem about 1 year ago. It can not solve by deleting browser cache. Then i was thinking that is the problem of hosting provider and i contact them. After then they solved this.
So i think you should contact your hosting provider.
You are uploading to wrong server (directory) or you are testing in wrong URL.