Search the Community

Showing results for tags 'Errors'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to ProcessWire
    • News & Announcements
    • Showcase
    • Wishlist & Roadmap
  • Community Support
    • Getting Started
    • Tutorials
    • FAQs
    • General Support
    • API & Templates
    • Modules/Plugins
    • Themes and Profiles
    • Multi-Language Support
    • Security
    • Jobs
  • Off Topic
    • Pub
    • Dev Talk

Found 4 results

  1. Hi, I have a small module I created that copies across field content from one page to multiple other pages. I just added a repeater field and while it copies across to the other pages it has caused timeout/memory issues with PHP. I think this is because of the multiple fields within the repeater (title, text caption, image) each being copied multiple times. I thought one way to help would be to not copy images across as they're not needed in the other pages. However I'm unable to figure out how to copy a repeater field excluding one field within the repeater itself. This is my current code: // Inline gallery 1 if(count($page->article_inline_gallery_1)) { $translation->of(false); $translation->article_inline_gallery_1->removeAll(); $gallery = $page->article_inline_gallery_1; foreach($gallery as $item) { $translation->article_inline_gallery_1->import($item); $translation->save("article_inline_gallery_1"); } } At the point that each repeater imported as a whole ->import($item) could anyone help to exclude one of the fields within the repeater?
  2. Hey, I started on my tag system with repeaters... It works, but I get a bunch of errors... And I've got no idea what the problem is. These are errors in the session->error and I've put them in a JQuery plugin called toastr. It looks like this: What can I do to change this? Or is this only in debug mode and it doesn't really matter?
  3. Hi all, I've just discovered an error on a LIVE site. I'm uploading images, then adding the already uploaded image to a Page The file gets uploaded first into the root of file, then the user submits a form with the file name in entry_photo $entry->entry_photo = $config->paths->files . '/' . $input->post["entry_photo"]; $entry_result = $entry->save(); Gets me this error: Error: Exception: Unable to copy: /var/www/vhosts/straighttalkswitch.com/httpdocs/switch-it-to-win-it/site/assets/files//19feeda0a3882049c8815a9d69d7ef2d_cute-dog-dogs-13286656-1024-768.jpg => /var/www/vhosts/straighttalkswitch.com/httpdocs/switch-it-to-win-it/site/assets/files/38361/19feeda0a3882049c8815a9d69d7ef2d_cute-dog-dogs-13286656-1024-768.jpg (in /var/www/vhosts/straighttalkswitch.com/httpdocs/switch-it-to-win-it/wire/core/Pagefile.php line 109) #0 [internal function]: Pagefile->___install('/var/www/vhosts...') #1 /var/www/vhosts/straighttalkswitch.com/httpdocs/switch-it-to-win-it/wire/core/Wire.php(271): call_user_func_array(Array, Array) #2 /var/www/vhosts/straighttalkswitch.com/httpdocs/switch-it-to-win-it/wire/core/Wire.php(229): Wire->runHooks('install', Array) #3 /var/www/vhosts/straighttalkswitch.com/httpdocs/switch-it-to-win-it/wire/core/Pagefile.php(74): Wire->__call('install', Array) #4 /var/www/vhosts/straighttalkswitch.com/httpdocs/switch-it-to-win-it/wire/core/Pagefile.php(74): Pageimage->inst I'm running php 5.2.17 if that makes a difference, and yes the Page file folders are set to 777 Thanks for any help anyone could offer ( I could REALLY use it)
  4. HELP!!!! I've been building a back end in ProcessWire. All was going well until it spontaneously began throwing an error when I try and view my page list tree, rendering the entire back end useless. I'm developing locally on Mamp on a Mac. I get the following JavaScript Error: Uncaught TypeError: Object #<Object> has no method 'complete' JqueryCore.js:2 v.extend.ajax JqueryCore.js:2 v.(anonymous function) JqueryCore.js:2 v.extend.getJSON JqueryCore.js:2 loadChildren ProcessPageList.js:385 init ProcessPageList.js:119 (anonymous function) ProcessPageList.js:734 v.extend.each JqueryCore.js:2 v.fn.v.each JqueryCore.js:2 $.fn.ProcessPageList ProcessPageList.js:93 (anonymous function) ProcessPageList.js:17 l JqueryCore.js:2 c.fireWith JqueryCore.js:2 v.extend.ready JqueryCore.js:2 A The offending line seems to be: $.getJSON(options.ajaxURL + "?id=" + id + "&render=JSON&start=" + start + "&open=" + options.openPageIDs[0], processChildren); if I threw a try/catch around the 'document.ready' function and it throws an error - it gives me no other info -- just an error and an empty Object. I think it's to do with getting the jSon file. it's three days work down the drain and I'm up against a deadline!!!