For some reason, images are not showing up when not logged in as an administrator.
The issue seems to be connected to my use of views.
The images are part of a content type I created. The field type is image and I can pull the images from the node when accessing the node in a custom template and not using views.
But when using views, the images only show up when I'm logged in as an administrator.
I don't have any field/content permission modules installed, this is pretty bare bones with a Zen theme sub-themed. And I'm not doing anything funky with the view, just create it and add the fields I want to display. It works fine as administrator.
I can't seem to figure this one out. It seems like this is a permissions issue, but I don't see anything in the permissions configuration that would affect this behavior.
Any tips?
I appreciate that this is an old post but after days of trying to resolve the problem I have seen many of these posts and want to update with my solution.
My web host is classed as a shared web host which means for me that I don't have as much access to the server side as with other hosts. The control area for the admin on my host is custom and lots of stuff that I have with another host and previous hosts id missing.
I resolved the images not showing by adjusting the .htaccess file. There are 2 that I have found so far in Drupal 7.24 (one in the site root and one in sites/default/files/) and I had to adjust both of them by commenting out the options section and the symlinks section. There is info on this by googling "one.com Drupal Installation".
Once both htaccess files had been edited and the permissions had been changed on the "files" folder in "sites/default/" to "755" the extra folders where created when I uploaded my images and the images started to show fine. If like me you are unable to change permissions within your website hosts control panel you will need to do it with either an ftp client or via ssh.
I have this problem sometimes usually I cange folder and image files permissions to 0777 if all is ok to 0755.
admin->people->permissions->check 'view files' for anonymous user, save permissions.
Those images you uploaded with some multi-uploading modules are regarded as files, anonymous user need permission to view them.
Related
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.
Is there any way to have the admin area of open cart located on my own server and have it accessible from there while having everything else located on the client's server and using the same database (which would be located on the client's server as well)?
I know all the admin files are located in the admin folder it can't be as simple as just uploading those files to my server, is it? I'll be using Opencart 2.0.
The theoretical answer to this is yes, you can.
You'll need to have the system folder on both servers since both the admin and catalog rely on the base classes to run.
On your client server you'll need:
catalog/*
config.php
crossdomain.xml
image/*
index.php
install/*
php.ini
system/*
On your admin server you'll want to make the normal admin folder your document root. So instead of adminserver.com/admin you'll just use adminserver.com
Admin server setup:
config.php
controller/*
index.php
language/*
model/*
view/*
php.ini
system/*
Then in your adminserver/config.php you would simply adjust you paths and db info as appropriate.
But the "real world" answer to this in no, you can't.
If you did do this, one of the main controllers in the admin area, file manager would not work.
File manager relies on the public images folder to upload images for your products. On a separate server the file manager would attempt to upload images to image/data which you could create on your adminserver, but obviously this wouldn't carry over to your client server.
You'd need to FTP your images to the client server with the exact same name and route as the admin server. Plus this could be extremely problematic for extensions. How would you set up modifications? Or extensions that have image parameters?
If maybe you had a CDN module in place, that might resolve the issue ... tough to say for sure.
Just keep in mind, once you've completed the install, you can change the config paths to whatever you like.
You don't have to use admin as your admin area, you can change it to steve or aardvark or whatever you like in the config file.
Having it on a separate server would be ideal, but for OpenCart, it's really not practical in a real world environment.
i have a wordpress site on my local server. I am able to access all the pages but only http://samplesite.com/wp-admin/theme-editor.php
it shows
You do not have sufficient permissions to access this page.
I changed the directory permissions to 777 using chmod. Still it shows the same thing.
I am able to access all other pages like /wp-admin all post links, i can install new themes, plugins create posts edit, add widgets etc.
The reason behind this, is your user permissions. Like wordpress assign some permissions to different types of users. Like everything is allow for admin but other users have limits. Maybe you're not the admin or You're using a plugin which block it.
Deactivate all the plugins then try again. If this error is because of any plugin then /wp-admin/theme-editor.php file will start opening correctly.
I would like to create a system which can manage all my websites from one page. All options of managing are let's say done or I know how to do them, except from editing and creating files on an external server.
I would like to know what is the best way to save files on exteral server. I would like to chang few files at once and would be nice not to leave administration panel. It is important to keep the whole system safe - that nobody could edit it without accesing administration panel.
I thought about changin chmods on each website using a local script and chmod() but then i cant access the files because http:// is not writable protocole i used fwrite() function.
Can you give me some tips how should I create that?
I broke up with my boyfriend so he changed the FTP password to my Drupal 7 website he was hosting through his host.
I still have admin access but that's about it.
I can get the database(s).
But without FTP I can't get the files.
Ran this on a Drupal basic page
echo ini_get("disable_functions");
The following functions are disabled
exec,system,passthru,shell_exec,escapeshellarg,escapeshellcmd,
proc_close,proc_open,dl,popen,show_source
Is there anything I can do!?
If you've got backup_migrate you could get the database. If you've got views you could build a view to list the files or anything else you need. This would be difficult but it could work.
Edit:
From memory, a user can browse their files with IMCE if that is installed. You could get it to browse the same directory that the file field uses.
Without shell access or ftp access no. You can try and contact the host and ask for a dump, but if it is under his name I doubt they would do anything for you. Or even just ask your boyfriend to be nice and see what comes of it (never know till you ask).
Other then that sounds like you are out of luck.