Jump to content

GeraldSchmidt

Members
  • Posts

    20
  • Joined

  • Last visited

Contact Methods

  • Website URL
    https://github.com/onur-sahin-de

Profile Information

  • Gender
    Male
  • Location
    Friedberg, Hessen (Germany)

Recent Profile Visitors

1,904 profile views

GeraldSchmidt's Achievements

Jr. Member

Jr. Member (3/6)

3

Reputation

1

Community Answers

  1. 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
  2. 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
  3. 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?
  4. hi, i have a similar problem now. Which value did you increase from 64 to 128 ? My Problem: https://processwire.com/talk/topic/12207-suddenly-i-am-not-able-to-edit-fields-or-delete-images-in-home-page-root-page/ Maybe you got the solution for my problem thank you in advance for your help
  5. 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?
  6. 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....
  7. 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) MySQL-Version (phpinfo();)
  8. I am not able to save my changes of the SEO-Tab.... see here: Video Is there something i have forgotten to configure?
  9. Thank you so much for your advice adrian!!! Now it works! <?php class RepeaterLastItemCatcher extends WireData implements Module { public static function getModuleInfo() { return array( // The module'ss title, typically a little more descriptive than the class name 'title' => 'RepeaterLastItemCatcher', // version number 'version' => 2, // summary is brief description of what this module is 'summary' => 'Dieses Modul fängt den letzten Eintrag des Repeaters "" ab.', // Optional URL to more information about the module 'href' => 'https://onur-sahin.de', // singular=true: indicates that only one instance of the module is allowed. // This is usually what you want for modules that attach hooks. 'singular' => true, // autoload=true: indicates the module should be started with ProcessWire. // This is necessary for any modules that attach runtime hooks, otherwise those // hooks won't get attached unless some other code calls the module on it's own. // Note that autoload modules are almost always also 'singular' (seen above). 'autoload' => true, // Optional font-awesome icon name, minus the 'fa-' part 'icon' => 'smile-o', ); } public function init() { // add a hook after the $pages->save, to issue a notice every time a page is saved $this->pages->addHookAfter('FieldtypeRepeater::savePageField', $this, 'catchLastItem'); } public function catchLastItem($event) { /* Die Argumente sind die Parameterübergaben folgender Methode -> ___savePageField https://github.com/ryancramerdesign/ProcessWire/blob/master/wire/modules/Fieldtype/FieldtypeRepeater/FieldtypeRepeater.module#L958 */ $page = $event->arguments[0]; // Der zuletzt hinzugefügte Text des Referenz-Repeaters $lastSavedReferencesText = $page->referencesList->last()->referencesText; // Das zuletzt hinzugefügte Bild des Referenz-Repeaters $lastSavedReferencesImage = $_SERVER['SERVER_NAME'].$page->referencesList->last()->referencesImage->first()->url; // Testweise mal ausgeben im Backend $this->message("lastSavedReferencesText: " . $lastSavedReferencesText); $this->message("lastSavedReferencesImage: " . $lastSavedReferencesImage); // Ab dieser Stelle kommt dann die Facebook-SDK zum Einsatz... } }
  10. I think i found a solution to detect the saving of the page but i cannot get the last-saved item. It only works when im not adding an entry to the repeater. <?php class RepeaterLastItemCatcher extends WireData implements Module { /** * getModuleInfo is a module required by all modules to tell ProcessWire about them * * @return array * */ public static function getModuleInfo() { return array( // The module'ss title, typically a little more descriptive than the class name 'title' => 'RepeaterLastItemCatcher', // version number 'version' => 2, // summary is brief description of what this module is 'summary' => 'Dieses Modul fängt den letzten Eintrag des Repeaters ab.', // Optional URL to more information about the module 'href' => 'https://onur-sahin.de', // singular=true: indicates that only one instance of the module is allowed. // This is usually what you want for modules that attach hooks. 'singular' => true, // autoload=true: indicates the module should be started with ProcessWire. // This is necessary for any modules that attach runtime hooks, otherwise those // hooks won't get attached unless some other code calls the module on it's own. // Note that autoload modules are almost always also 'singular' (seen above). 'autoload' => true, // Optional font-awesome icon name, minus the 'fa-' part 'icon' => 'smile-o', ); } /** * Initialize the module * * ProcessWire calls this when the module is loaded. For 'autoload' modules, this will be called * when ProcessWire's API is ready. As a result, this is a good place to attach hooks. * */ public function init() { // add a hook after the $pages->save, to issue a notice every time a page is saved $this->pages->addHookAfter('save', $this, 'catchLastItem'); } public function catchLastItem($event) { $page = $event->arguments[0]; $this->message("Nachdem speichern der Seite: " . $page->referencesList->last()->referencesText); } } sdfsdf
  11. Hi, following scenario: I have a Single-Page implemented with ProcessWire (So i got only one page in the Backend) The customer wants me to implement a functionality which recognize the current saved item of the repeater and publish it to his facebook-page. But this is my problem. I don't see any possibility to "catch" this last-saved entry of the repeater programmatically. This here is my repeater The name of the repeater is "referencesList" (the field-name) Do i have to programm a module for this plan? Thank you very much in advance for your answer
  12. Hello everyone i gotta simple problem everytime after refreshing my backend, the fields that i have closed before are still opened (For example the repeater). is there a (maybe localstorage) functionality which remembers the action in relation to the open/close activity?
  13. Are you sure that this one is the full solution? Your solution is missing the <ul class="dropdown"> dropdown class value. This was the reason why it was not working for me My solution looks like this: (Adding inner_tpl Option) <nav class="top-bar" data-topbar> <section class="top-bar-section"> <ul class="right"> <li class="divider"></li> <?php $treeMenu = $modules->get("MarkupSimpleNavigation"); // load the module $options = array( 'has_children_class' => 'has-dropdown', 'inner_tpl' => '<ul class="dropdown">||</ul>', ); echo $treeMenu->render($options); // render default menu ?> </li> </ul> </section> </nav>
  14. It's an older post but let me correct this anyway if( $page === $pages->get(1) )
  15. Hi, i love the FieldtypeFontIconPicker but unfortunately it only supports FontAwesome. Is there a solution to include the icon package of Foundation ? regards, Gerald
×
×
  • Create New...