Jump to content
GeraldSchmidt

Suddenly i am not able to edit fields or delete images in home-page (root page)

Recommended Posts

Hi,

i don't understand why this problem only appears when im trying to edit the root page (home).

All subpages are working.

I made a video of the problem: Video

My boss made an update yesterday from php version 5.3.29 to 5.6.17-1~he.2 (At the moment i am not able to downgrade the version)

Maybe this is the reason?

My Processwire Version: 2.7.2

MySQL-Version (PHPMYADMIN)

post-3414-0-13638200-1455315922_thumb.pn

MySQL-Version (phpinfo();)

post-3414-0-89677900-1455315934_thumb.pn

Share this post


Link to post
Share on other sites

I don't think that the PHP version is the culprit - I have 5.6.17 as well, and it works. Did you check the file permissions, especially the site/assets/files/1 directory?

Share this post


Link to post
Share on other sites

I don't think that the PHP version is the culprit - I have 5.6.17 as well, and it works. Did you check the file permissions, especially the site/assets/files/1 directory?

The permissions are ok (755) - processwire is able to upload into this folder

i have also the debugger set to "true". I am not getting any errors while i am trying to edit the root-page.... and Tracy Debugger is for Version 3

I think i will reinstall Processwire....

Share this post


Link to post
Share on other sites

After the new installation i am getting the same error....

Website-Hoster is Hosteurope... i recognize that suhosin is installed. Is this maybe the problem?

Share this post


Link to post
Share on other sites

Im not sure but check the security settings. I mean I had some kind of problem some months ago. Siteguard or something has to be disabled. Im not really sure now. Have to check on computer later

Share this post


Link to post
Share on other sites

i have also tried to configure suhosin values:

php_value suhosin.get.max_array_depth 1500
php_value suhosin.get.max_array_index_length 1536
php_value suhosin.get.max_name_length 768
php_value suhosin.get.max_totalname_length 1536
php_value suhosin.get.max_value_length 3072
php_value suhosin.get.max_vars 6144
php_value suhosin.post.max_array_depth 1200
php_value suhosin.post.max_array_index_length 768
php_value suhosin.post.max_name_length 768
php_value suhosin.post.max_totalname_length 1536
php_value suhosin.post.max_value_length 195000
php_value suhosin.post.max_vars 6144
php_value suhosin.request.max_array_depth 300
php_value suhosin.request.max_array_index_length 768
php_value suhosin.request.max_name_length 768
php_value suhosin.request.max_totalname_length 1536
php_value suhosin.request.max_value_length 195000
php_value suhosin.request.max_varname_length 768
php_value suhosin.request.max_vars 6144
php_value suhosin.cookie.max_array_depth 1200
php_value suhosin.cookie.max_array_index_length 768
php_value suhosin.cookie.max_name_length 768
php_value suhosin.cookie.max_totalname_length 1536
php_value suhosin.cookie.max_value_length 60000
php_value suhosin.cookie.max_vars 6144
php_value suhosin.memory_limit 512M

it doesnt work... I'm totally despairing right now... am i the only one with this special problem? I have also moved the whole project to another server without suhosin...i get the same error! What is wrong?

Share this post


Link to post
Share on other sites

I still doubt that it has to do with your PHP setup. What does happen if you try to duplicate the root page? Does the copy show the same problem?

Share this post


Link to post
Share on other sites

I still doubt that it has to do with your PHP setup. What does happen if you try to duplicate the root page? Does the copy show the same problem?

I am not able to duplicate the Root-Page (i mean with the same template called "home"). I have only created an subpage with a new template-file called "intro" (which is the copy of the home-template) but this is only an avoidance not a real solution

6attfurl.png

Share this post


Link to post
Share on other sites

Before you duplicate "home" you have to change the "Can this template be used for new pages?" option in the home template's family settings, as it's set to "no" by default.

Share this post


Link to post
Share on other sites

Before you duplicate "home" you have to change the "Can this template be used for new pages?" option in the home template's family settings, as it's set to "no" by default.

i have set it to "yes" but i am still not able to duplicate the root-page

Sry i am able to create a new subpage with the "home"-template  .... every change is recognized by the server/processwire....this is really strange!!!

I don't get it... Only the root-page has this strange behavior :(

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Falk
      Hi!
      After temporarily using Module Image Extra, which I completely removed, I had some troubles with my imagefield (unused table columns).
      So I just imported a previous version of this column via PHPmyAdmin, which worked pretty well.
      Anyways, in Processwire Backend all image tags are gone, although they are OK in the database.
      Other image related things work (thumbnail, title etc are OK).
      Is there any way to recreate all the images or something? Or may this be an cache-related issue?
       
      Thanks in advance 😃
       
    • By Xonox
      Hi,
      There's something happening in ProcessWire that doesn't compute abd it has to do with images.
      Situation:
      On the homepage template there's a repeater that takes two images to build a slider:
      slide_image: A wide image for desktops
      slide_image_mobile: A more "verticalized" image for small screens
      Now I have this code:
      foreach($page->home_slides as $slide) { // Create desktop slide if(isset($slide->slide_image)) { // Create desktop slide $slide_image = $slide->slide_image->size(1170,400); // Create mobile slide if(isset($slide->slide_image_mobile)) { $slide_image_mobile = $slide->slide_image_mobile->size(1048,800); } else { $slide_image_mobile = $slide->slide_image->size(1048,800); } ?> <div class="slide-content"> <a href="<?php echo $slide->link; ?>" class="slide"> <img src="<?php echo $slide_image->url; ?>" class="img-fluid d-none d-md-block" title="<?php echo $slide->slide_title; ?>" alt="<?php echo $slide->slide_title; ?>" /> <img src="<?php echo $slide_image_mobile->url; ?>" class="img-fluid d-block d-md-none" title="<?php echo $slide->slide_title; ?>" alt="<?php echo $slide->slide_title; ?>" /> </a> </div> <?php } } On my dev server, the small image is detected and placed in content, however in my production server this doesn't happen.
      I've double checked fields names and the fields contain images. I've even imported the database into the Dev Server.
      I don't have any clue why it works locally and not in server.
      Can anyone shed som light?
      Thank you!
    • By Peter Knight
      I have 2 repeater types working with the Repeater Matrix.
      To keep things simple, I have
      image gallery a downloads gallery. I can't quite figure out how to echo the contents from within a product_gallery. 
      I can get the code below to display the text 'An image gallery' but not the bunch of images within this.
      I'm not sure though if it's my variable trail or my nested echo statement.
       
      <?php foreach($page->components as $item) { if($item->type == 'product_gallery') { echo " An image gallery..."; foreach($product_gallery->images as $photo) { echo " An image <image src='{$photo->url}'> "; } } else if($item->type == 'downloads') { echo " A download gallery... "; } } ?> Thanks
      P
    • By Robin S
      I created this module a while ago and never got around to publicising it, but it has been outed in the latest PW Weekly so here goes the support thread...
      Unique Image Variations
      Ensures that all ImageSizer options and focus settings affect image variation filenames.

      Background
      When using methods that produce image variations such as Pageimage::size(), ProcessWire includes some of the ImageSizer settings (height, width, cropping location, etc) in the variation filename. This is useful so that if you change these settings in your size() call a new variation is generated and you see this variation on the front-end.
      However, ProcessWire does not include several of the other ImageSizer settings in the variation filename:
      upscaling cropping, when set to false or a blank string interlace sharpening quality hidpi quality focus (whether any saved focus area for an image should affect cropping) focus data (the top/left/zoom data for the focus area) This means that if you change any of these settings, either in $config->imageSizerOptions or in an $options array passed to a method like size(), and you already have variations at the requested size/crop, then ProcessWire will not create new variations and will continue to serve the old variations. In other words you won't see the effect of your changed ImageSizer options on the front-end until you delete the old variations.
      Features
      The Unique Image Variations module ensures that any changes to ImageSizer options and any changes to the focus area made in Page Edit are reflected in the variation filename, so new variations will always be generated and displayed on the front-end.
      Installation
      Install the Unique Image Variations module.
      In the module config, set the ImageSizer options that you want to include in image variation filenames.
      Warnings
      Installing the module (and keeping one or more of the options selected in the module config) will cause all existing image variations to be regenerated the next time they are requested. If you have an existing website with a large number of images you may not want the performance impact of that. The module is perhaps best suited to new sites where image variations have not yet been generated.
      Similarly, if you change the module config settings on an existing site then all image variations will be regenerated the next time they are requested.
      If you think you might want to change an ImageSizer option in the future (I'm thinking here primarily of options such as interlace that are typically set in $config->imageSizerOptions) and would not want that change to cause existing image variations to be regenerated then best to not include that option in the module config after you first install the module.
       
      https://github.com/Toutouwai/UniqueImageVariations
      https://modules.processwire.com/modules/unique-image-variations/
    • By Peter Knight
      Is there a way to make JPGs progressive by default via the API?
      I've added the following to my site/config.php file but user-uploaded images are often displayed as non progressive.
      $config->imageSizerOptions = array( 'upscaling' => true, // upscale if necessary to reach target size? 'cropping' => true, // crop if necessary to reach target size? 'autoRotation' => true, // automatically correct orientation? 'interlace' => true, // use interlaced JPEGs by default? (recommended) 'sharpening' => 'soft', // sharpening: none | soft | medium | strong 'quality' => 95, // quality: 1-100 where higher is better but bigger 'hidpiQuality' => 60, // Same as above quality setting, but specific to hidpi images 'defaultGamma' => 0.5, // defaultGamma: 0.5 to 4.0 or -1 to disable gamma correction (default=2.0) ); Thanks
×
×
  • Create New...