Forum

Thread tagged as: Problem, Configuration

Unable to add users

Summary information

Perch: 2.8.14, PHP: 5.4.43, MySQL: 5.5.42-37.1, with PDO
Server OS: Linux, cgi-fcgi
Installed apps: content (2.8.14), assets (2.8.14), categories (2.8.14)
App runtimes: <?php include(PERCH_PATH.'/core/apps/content/runtime.php'); include(PERCH_PATH.'/core/apps/categories/runtime.php'); ?>
PERCH_LOGINPATH: /perch
PERCH_PATH: /home6/astorib1/public_html/perch
PERCH_CORE: /home6/astorib1/public_html/perch/core
PERCH_RESFILEPATH: /home6/astorib1/public_html/perch/resources
Image manipulation: GD Imagick
PHP limits: Max upload 50M, Max POST 50M, Memory: 128M, Total max file upload: 50M
Resource folder writeable: Yes
DOCUMENT_ROOT: /home6/astorib1/public_html
HTTP_HOST: www.astoriaurgent.com
REQUEST_URI: /perch/core/settings/diagnostics/
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php

A year ago I defined an administrator and an editor, but as administrator I have no ability to add a user. When I click "Users" I'm taken out of Perch admin to the homepage of the website. This was true both before and after my update to v2.8.14, so may have been true for the past year.

Jerry White

Jerry White 0 points

  • 6 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Which version did you update from?

v2.6.6. I am trying to resolve a problem re images and thought it might be caused by a user-permissions problem: I can upload an image to the admin editor or to the gallery, but I can't find a way to add it to a post, except by entering its url -- in that case, it shows in the editor preview but doesn't display on the website. Only text displays.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you have any redirects in place on the site that might also be affecting the /perch folder?

Removed /user redirect and solved the add/configure user issue. Thank you. Privileges were all checked for administrator, so that is not the cause of images from assets not showing in the editor, or uploaded images not showing on the website.

I have 12 images in resources, but only 2 show in assets, none are available from the image icon of the editor. I reindexed assets but no change.

Drew McLellan

Drew McLellan 2638 points
Perch Support

If you upload a new image, does that show up in Assets?

Yes, it is added, but not seen from the image icon in the editor; there's nothing there but image info, link and upload. The image is displayed if I enter its url from resouces (/perch/resources/image.jpg), but when I save the post, only the heading and a placeholder shows in the Perch region on the website.

Drew McLellan

Drew McLellan 2638 points
Perch Support

When you say "the image icon in the editor" do you mean on a textarea? Assets is supported for image and file fields only at the moment.

Ok, that's fine; I can select an asset for an image field, and it is displayed on the website.

Any suggestions for how to include an image in an article?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Have you looked into Blocks at all?

More on the issue: If I use a structured image statement -- not a textarea -- an image drawn from Assets shows in admin but doesn't display on the site. My template code: <img src="<perch:content id="image" type="image" label="My image" /> alt="<perch:content id="alt" type=text" label="Alt text" />" />

All I see is an image placeholder. When I look at the url of the placeholder, it's "perch/resources/my-image.jpg alt=". The filenames look ok in resources. But each one has "alt=" at the end of the url when it comes out of the template. The template seems not to work in FF or Chrome. Any suggestions?

Drew McLellan

Drew McLellan 2638 points
Perch Support

So the starting forward slash is missing from the path?

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, just badly formed HTML.

Replace this:

<img src="<perch:content id="image" type="image" label="My image" /> alt="<perch:content id="alt" type=text" label="Alt text" />" />

with this:

<img src="<perch:content id="image" type="image" label="My image" />" alt="<perch:content id="alt" type=text" label="Alt text" />" />

Yes, agreed. Thanks much.