Jump to content

gmclelland

Members
  • Posts

    577
  • Joined

  • Last visited

  • Days Won

    7

Everything posted by gmclelland

  1. Just wanted to let you know that the sticky header isn't sticking for me with the latest 3.0.32 devns and the default theme. Seems like it started after I upgraded to 3.0.32. I'm also using the latest AOS. I have hard refresh the browser several times.
  2. I haven't tried it yet, but this module looks great! I'm guessing the Media files are stored using PW pages? Is there any way to add more fields to those PW pages? For example, I might want to use a text field to store where I got the image from. I'm also curious how the File Usage works? Does it just count and list the pages where the media file is used in a media field. Does it also take into consideration files that have been inserted into text areas? Does it include pages with text areas that link to the files?
  3. I'm so confused. Today it just started working. I didn't even do anything. Maybe opcache related? Even tested on different PW2 and PW3 sites. HI @adrian and @horst. I tried Tracy debugger and here is what it shows (see attachment) It also confirmed that I was editing the correct php.ini file. Thank you both for your help. I'm hoping it won't happen again
  4. I thought so, but then out of the blue it just stopped working and I can't seem to figure out how to get it working again.
  5. Well crap, now for some reason I can't upload images or files on my mac. Same problem, but I'm just using core image and file fields. It was working, I'm not sure what changed? This happens with PW2 and PW3 sites when I try to upload the files. I've tried the same in firefox, chrome, and safari. When I check my response in Chrome it shows the following: <br /> <b>Deprecated</b>: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in <b>Unknown</b> on line <b>0</b><br /> <br /> <b>Warning</b>: Cannot modify header information - headers already sent in <b>Unknown</b> on line <b>0</b><br /> [{"error":false,"message":"Added file: globals.jpg","file":"\/site\/assets\/files\/1002\/globals.jpg","size":25337,"markup":"\n\t<li id='file_91ef455ec27970cb238861b2c8895d64' class='InputfieldFileItem InputfieldImage ui-widget'>\n\t\t<p class='InputfieldFileInfo InputfieldItemHeader ui-widget ui-widget-header ui-helper-clearfix'>\n\t\t\t<span class='HideIfSingle HideIfEmpty InputfieldFileDrag'><i class='fa fa-sort'><\/i> <\/span>\n\t\t\t<i class='fa fa-caret-right InputfieldFileDrag HideIfMultiple'><\/i> \n\t\t\t<label class='InputfieldFileDelete'><input type='checkbox' name='delete_images_91ef455ec27970cb238861b2c8895d64' value='1' title='Delete' \/><i class='fa fa-fw fa-trash'><\/i><\/label>\n\t\t\t<a class='InputfieldFileMove InputfieldFileMoveBottom' href='#' title='Move to bottom'><i class='fa fa-fw fa-angle-double-down'><\/i><\/a> \n\t\t\t<a class='InputfieldFileMove InputfieldFileMoveTop' href='#' title='Move to top'><i class='fa fa-fw fa-angle-double-up'><\/i><\/a> \n\t\t\t<a class='InputfieldFileName pw-modal pw-modal-large' title='globals.jpg: globals.jpg (281x386)' href='\/admin\/page\/image\/edit\/?id=1002&file=1002,globals.jpg&rte=0&field=images' data-buttons='#non_rte_dialog_buttons button' data-autoclose='1' data-close='#non_rte_cancel'>globals.jpg <i class='fa fa-pencil ui-priority-secondary'><\/i><\/a> \n\t\t\t<span class='InputfieldFileStats'>25 kB, 281x386 <\/span> \n\t\t<\/p>\n\t\t<div class='InputfieldFileData ui-widget ui-widget-content'>\n\t\t\t<div class='InputfieldImagePreview'>\n\t\t\t\t<a class='InputfieldFileLink' target='_blank' href='\/site\/assets\/files\/1002\/globals.jpg?nc=10'><img height=\"100\" src=\"\/site\/assets\/files\/1002\/globals.0x100.jpg?nc=1452724334\" alt=\"\" data-gridsize=\"100\" \/><\/a>\n\t\t\t\t<div class='InputfieldImageActions'>\n\t\t\t\t\t<a title='globals.jpg (281x386)' href='\/admin\/page\/image\/edit\/?id=1002&file=1002,globals.jpg&rte=0&field=images' class='pw-modal pw-modal-large' data-buttons='#non_rte_dialog_buttons button' data-autoclose='1' data-close='#non_rte_cancel'><i class='fa fa-fw fa-crop'><\/i><\/a>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t\t<div class='InputfieldFileDescription'><label for='description_images_91ef455ec27970cb238861b2c8895d64' class='detail'>Description<\/label><input type='text' name='description_images_91ef455ec27970cb238861b2c8895d64' id='description_images_91ef455ec27970cb238861b2c8895d64' value='' \/><\/div>\n\t\t\t<input class='InputfieldFileSort' type='text' name='sort_images_91ef455ec27970cb238861b2c8895d64' value='0' \/>\n\t\t<\/div>\n\t<\/li>","replace":false,"overwrite":0}] I tried disabling xdebug, turning off php error warnings, turning off debug mode in Processwire, always_populate_raw_post_data = -1 and 0 in my php.ini all while restarting apache between each change. In my PHP error logs I get: [Fri Jul 29 19:01:42.816150 2016] [:error] [pid 900] [client 127.0.0.1:50397] PHP Deprecated: Automatically populating $HTTP_RAW_POST_DATA is deprecated and will be removed in a future version. To avoid this warning set 'always_populate_raw_post_data' to '-1' in php.ini and use the php://input stream instead. in Unknown on line 0, referer: http://pw3.dev/admin/page/edit/?id=1019 [Fri Jul 29 19:01:42.816467 2016] [:error] [pid 900] [client 127.0.0.1:50397] PHP Warning: Cannot modify header information - headers already sent in Unknown on line 0, referer: http://pw3.dev/admin/page/edit/?id=1019 I'm running PHP 5.6.24 / Apache/2.4.18 on my mac installed with homebrew. Any other help is appreciated
  6. Nice module. Just a suggestion... Maybe you could add an option to also hide all but the first select input? When someone selects the first option it could show the next select field as so on?
  7. Is there any way to turn off the "quote this" popup when you select text? It's driving me crazy.
  8. Also... Before the changes, I was having this problem with 2.x and 3.x versions of Processwire. Now both work.
  9. Maybe you could try updating PHP to 5.6? I think PHP 5.4 is unsupported now anyways? Maybe also check your upload_tmp_dir = "/tmp" in php.ini is set to the correct location for your OS. I'm not sure what else to try... You might list your Operating Systems as well in case others chime in here to help.... maybe upload your php.ini file?
  10. Few questions for you: How did you install php on your setup? What version of php are you running? Is xdebug installed? I installed php via homebrew on a mac using php 5.6.23. Using always_populate_raw_post_data = -1 didn't work for me. I had to update/reinstall php with brew unlink php56 brew unlink php56-mcrypt brew unlink php56-xdebug brew install php56 brew install php56-mcrypt brew install php56-xdebug restart apache and then it started working Note: In the github issue I stated that it was only working with xdebug enabled, but now(after following the steps above) I can run it with xdebug disabled. Hope that helps
  11. Maybe it is related to this issue https://github.com/ryancramerdesign/ProcessWire/issues/1174 ?
  12. Thank you horst! That was the problem.
  13. Hello everyone. I’m just starting using Processwire and ran into a problem. I can’t seem to output on a template(left-sidebar.php) a repeater field that is attached to a “site-settings” page. The surrounding html prints but the $block_title and $block_body are empty. Anybody willing to take a look? Here is the code I’m using in left-sidebar.php: <?php $siteSettings = $pages->get("/site-settings/"); foreach($siteSettings->global_footer_blocks as $block) { echo "<div class=4u 12u(narrower)><section>"; echo "<header><h3>"; echo $block->title; echo "</h3></header>"; echo "<footer>" . $block->body . "</footer>"; echo "</section></div>"; } ?> On my site-settings page the repeater field is named global_footer_blocks. That repeater field contains block_title and block_body fields. Here is my output http://pastie.org/10885463 when I call print_r($siteSettings->global_footer_blocks); in left-sidebar.php.
  14. Maybe this would work? http://modules.processwire.com/modules/process-setup-page-name/
  15. Lullabot wrote a good Drupal specific article on the subject: https://www.lullabot.com/articles/amping-up-drupal They also released a PHP library https://github.com/Lullabot/amp-library that might help.
  16. Hmm... I don't see anything. Did you forget to insert the image/screencast?
  17. Thanks everybody for the tips! That definitely points me in the right direction.
  18. Thanks @mr-fan and @adrian! @mr-fan your setup is similar, but in my setup there would be a main calendar page and each event posting would have it's own public page. On that event posting a page there would be a button for "Add to calendar" so that people can add that event to their personal calendars. So I'm still confused conceptually how this would all work? Am I supposed to examine the url in my event posting template and check for a .ics extension and do the proper theming?
  19. I'm wondering what is the best way in Processwire to dynamically create .ics files from all my existing event pages? I would basically like a button on my event pages that says "Add to Calendar" My pages have a startDate and endDate fields. Pages have urls like events/name-of-event I would like it if someone visits events/name-of-event.ics, it would dynamically create the ics file download. Is something like this possible with Processwire?
  20. I posted a similar topic that might be relevant to this discussion. https://processwire.com/talk/topic/11905-globally-access-the-page-tree-in-the-admin-theme/ I like how wagtail.io has a sliding page tree.
  21. Thanks @pwired, I really just wanted to share how that other cms is making their page tree available on every page in the admin in way that is quickly and easily accessible. It looks like it could also provide a way to browse a large tree of pages when editing on a mobile phone. Currently Processwire requires you to click on the pages link which requires a full page load. Having the Pages Tree always available is a nice feature in modx and Pimcore. I'm still very new to Processwire, so it might be a while before I can figure out how to do something like this. Others may want take that design pattern and run with it.
  22. Just came across this interesting video https://vimeo.com/86719782. At 53 seconds into the video you can see how the Wagtail cms (https://wagtail.io/) admin theme is able to show their site's page tree just by hovering a global link. Maybe that is something that can be done for Processwire? Just a thought
  23. Thanks adrian for the help. Yes, that can happen if you don't set any page aliases with the https://www.drupal.org/project/pathauto module. The Pathauto module is used on pretty much every Drupal site.
×
×
  • Create New...