Jump to content

Search the Community

Showing results for tags 'solved'.

  • 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

Product Groups

  • Form Builder
  • ProFields
  • ProCache
  • ProMailer
  • Login Register Pro
  • ProDrafts
  • ListerPro
  • ProDevTools
  • Likes
  • Custom Development

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

  1. If I try to upload the same file (an image) to the "files" field AND to the "image" field (for thumbnail generation) on a page. But if I do that I get an error which says: How can I tackle this problem? Is it somehow possible? Because I need the image for a thumbnail and the file from the files field can be downloaded.
  2. Hello! I was working on my website on Friday with what appears everything to be fine, and I come back today and now I can't access any page, I just get a white page with no information and no logs are logging what the issue is and I'm quite stumped frankly as to the cause. Going to http://138.197.146.76/ just brings up a blank page and no error logs and it's driving me crazy trying to troubleshoot. If you go to any other non-processwire page it works fine, like the php info page: http://138.197.146.76/info.php At first I thought it was an .htaccess issue (UTF-8 BOM info being parsed by Apache2 a the head of the file) but in re-uploading it that didn't solve it. Then I thought it was a php error from the index page being loaded but no PHP errors appear anywhere that I can see with a timestamp near to today, nor does the Processwire log update. It hasn't updated since the 10th and I'm not sure why. After 10 years of WordPress development, I'm pretty decent at troubleshooting server issues but this just has me for a loop, I'm not sure what's going on here so if anyone has any insight or wouldn't mind taking a look to troubleshoot I can provide you with root access to the server (it's a Ubuntu 16 LTS droplet on Digital Ocean). I've included dumps of my most recent logs, maybe I'm missing a detail? Any insight would be appreciated! Regards, Virtually(Creative) errors.txt access.log error.log
  3. hi I have observed that processwire always cache my page even if i have disable cache from template, my problem is that trying to style the page and to be able to see my changes i have to clear the cache either by save the page again or delete the assets/cache/* or inside module page render . i have try processwire v 3.0.39, 3.042, 3.051 thanks
  4. Hi guys I need an estimate for the following task: I developed a job candidate application in ProcessWire and need an extension to a Lister Pro Page. My customer wants to display a summary table of the filtered data like in the attached screenshot. When you filtered the view, that summary should show how many candidates have which status according to the actual filtered view. If you change the filter, the summary table has to be updated also. Who can accomplish this task and what would it cost? I first need an estimate to tell it to my customer. If he says the price is ok I will provide you with FTP Data to a dev server version of that tool. Thank you in advance.
  5. Somehow content editors love the <br> tag. On a 'random' base, the're putting in a line break. The cases of double <br> is easy to solve, but the single ones are just a pain in the *ss, as they could be intended. Think 80% of the <br /> makes me <grrrr />. For other elements I can use some pseudo elements to foo-doo visualize when they are used. For br thats not possible without some javascript I think. I even think: Disallow br tags at all.<br> How do you guys solve this.? Putting this in the the CSS, will visualize the BR. p br { content: "*"; display: block; margin-bottom: 0; line-height: 1; } p br:after { content: "<br>"; display: inline; background: red; color: #FFF; font-size: 12px; border-radius: 2px; margin-right: 2px; padding: 0 4px; float: left; }
  6. I first asked this question on Twitter but I guess the forum is a better place to get a good answer. The following code is taken from the head.inc file of the default PW theme: // Create the top navigation list by listing the children of the homepage. // If the section we are in is the current (identified by $page->rootParent) // then note it with <a class='on'> so we can style it differently in our CSS. // In this case we also want the homepage to be part of our top navigation, // so we prepend it to the pages we cycle through: $homepage = $pages->get("/"); $children = $homepage->children; $children->prepend($homepage); foreach($children as $child) { $class = $child === $page->rootParent ? " class='on'" : ''; echo "<li><a$class href='{$child->url}'>{$child->title}</a></li>"; } The definition of $page->rootParent from the cheatsheet: I understand, that if you have the following page structure … Home About ProjectsProject ASubproject 1 Project B … and calling $page->rootParent->title on »Subproject 1« outputs »Projects«. But why can I also check with it that a page is the »current« one like written in the above code ($child === $page->rootParent)? I guess the problem I have with this is that one method implies two different semantics (which confuses me). Just wanted to share my thoughts about this as I’m trying to truly »learn« PW form the inside out.
  7. I'd like to make the search in the PW Admin a little more fuzzy (able to match partial terms etc). Can I somehow change the default operator from "~=" to "%=" ? In the admin theme I'm using, the form is generated like this: $searchForm = $user->hasPermission('page-edit') ? $modules->get('ProcessPageSearch')->renderSearchForm() : ''; Can I pass a parameter to the renderSearchForm() function, or something similar without changing the core? Thanks!
  8. So in general I really love how PW does its sizing and centers the focus on the picture so if you size it different that its true aspect ratio it focuses on the center of the picture, which in general is perfect for what we need. However, I was wondering if it was possible to change the parameters of where it focuses on. I am doing a photography website and I have some really awesome vertical images that are getting clipped at the top where the top is the most important part of the models picture. I am wondering if anyone has any good advice on how to best approach this issue inside of Process Wire Where does the magic happen and can I adjust it? You can see the issue here: http://peterson-medi...io/people/ Third row down, 3rd right picture(unless he moves it, or your browser is narrow in width, basically just any of the pictures with the heads cut off .) I would just make the layout different, but since this layout is fully responsive and changes sizes drastically I need to figure out how to do this. I was hoping to maybe write some php that would check to see if the height parameters of the picture were bigger than the width, then if so, focus on the top of the picture instead of the middle. Thanks a lot, and I hope someone can help me figure this one out.
  9. Hi! I have multi language all set up and working with multi language fields and two languages: default and english. Everything's working, but when I create a new Page and try to set title and title_english, only title is stored. The english version comes in blank. Here's what I do: $item = new Page(); $item->template = $this->templates->get("page_complex"); $item->parent = $page->id; $item->title = "Kommande matcher"; $item->title_english = "Upcoming fights"; $item->save(); Any ideas anyone? Thank you Ryan & all for this wonderful CMS!!! Cheers, / Thomas
  10. I just installed the latest dev branch from github on my local mamp server and wanted to add the german language pack to the default language. The files uploaded, but no translated phrases are detected. This just happens with the dev branch, with the master branch everything works like expected.
  11. Hi, I'm running the newest version of processwire with multilanguage activated. On my search page I'm using this to find pages: if($q = $sanitizer->selectorValue($input->get->q)) { $input->whitelist('q', $q); $matches = $pages->get("title|body|summary|sidebar%=$q"); } //and so on But if I'm using it I'm always getting this error: Exception: Unknown column 'field_title.data0' in 'where clause' (in /var/www/ud14_276/html/sgym.de/www/wire/core/Database.php line 118) #0 /var/www/ud14_276/html/sgym.de/www/wire/core/DatabaseQuery.php(84): Database->query(Object(DatabaseQuerySelect)) #1 /var/www/ud14_276/html/sgym.de/www/wire/core/PageFinder.php(145): DatabaseQuery->execute() #2 /var/www/ud14_276/html/sgym.de/www/wire/core/Pages.php(144): PageFinder->find(Object(Selectors), Array) #3 [internal function]: Pages->___find('title=123', Array) #4 /var/www/ud14_276/html/sgym.de/www/wire/core/Wire.php(271): call_user_func_array(Array, Array) #5 /var/www/ud14_276/html/sgym.de/www/wire/core/Wire.php(229): Wire->runHooks('find', Array) #6 /var/www/ud14_276/html/sgym.de/www/wire/core/Pages.php(213): Wire->__call('find', Array) #7 /var/www/ud14_276/html/sgym.de/www/wire/core/Pages.php(213): Pages->find('title=123', Array) #8 /var/www/ud14_276/html/sgym.de/www/wire/core/Pages.php(228): Pages->findOne('title=123') #9 /var/www/ud14_276/html/sgym.de/www/si I had a look in the database and I guess it originally tries to look for $q in both the english and german veriant. And so it should look for $q in the columns data and data1234. But instead it looks into data and data0. I don't know why...
  12. Hi all, Installation done and multilingual has been implemented successfully but I faced a problem. I cloned the basic-page, named it basic-page_noside and deleted the "sidebar" at the template setting. I use this new template for the "Docs" page under the Home, and also two child page under "Docs". However, I still can see the sidebar content when I view Docs and the two child pages. I think I miss out something.... and need your help on this. I don't know much about coding etc. but I could follow instruction well.
  13. Hello Community, I have a directory structure like this: [website] |- libs // This folder is not part of PW |- paypal |- ipn.php |- site |- wire The problem is that I cannot access $pages inside /website/libs/paypal/ipn.php. Paypal IPN will point to this file: http://mysite.com/libs/paypal/ipn.php <?php $productid = $pages->get(1332); var_dump($productid); // read the post from PayPal system and add 'cmd' $req = 'cmd=' . urlencode('_notify-validate'); foreach ($_POST as $key => $value) { $value = urlencode(stripslashes($value)); $req .= "&$key=$value"; } $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://www.paypal.com/cgi-bin/webscr'); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_POSTFIELDS, $req); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 2); curl_setopt($ch, CURLOPT_HTTPHEADER, array('Host: www.paypal.com')); $res = curl_exec($ch); curl_close($ch); // assign posted variables to local variables $item_name = $_POST['item_name']; $item_number = $_POST['item_number']; $payment_status = $_POST['payment_status']; $payment_amount = $_POST['mc_gross']; $payment_currency = $_POST['mc_currency']; $txn_id = $_POST['txn_id']; $receiver_email = $_POST['receiver_email']; $payer_email = $_POST['payer_email']; if (strcmp ($res, "VERIFIED") == 0) { // check the payment_status is Completed // check that txn_id has not been previously processed // check that receiver_email is your Primary PayPal email // check that payment_amount/payment_currency are correct // process payment } else if (strcmp ($res, "INVALID") == 0) { // log for manual investigation } ?> Thanks!
  14. Hi, since I'm using TextareaLanguage for my "body" field I can't use the "TinyMCE Advanced Configuration Options" under the "Input" section anymore... It just shoes the default TinyMCE editor interface... How can this problem be solved? / Nico
  15. Before i report a bug on Github i want to ask if there are more people that are experiencing problems with the search feature in the admin. Scenario: A fresh install of PW. Search for 'templates'-> Found 1 page using selector: title~=templates Search for 'about'-> Found 0 pages using selector: title~=about Search for 'about'-> Found 1 page using selector: title=about Search for 'site map'-> Found 0 pages using selector: title~=site map Search for 'site map'-> Found 1 page using selector: title=site map Search for 'site'->Found 1 page using selector: title~=site (the page with title "Site Map") Maybe i'm confused about the different types of search but if the templates page is found, the about page should also be found? Also the above sitemap search doesn't seem logical in result.
  16. I have multiple sites setup using Apache VirtualHosts like this: /var/www/html/vhost1 /var/www/html/vhost2 ... These sites are all different purposes but same owner. They maybe could share templates and styles. When I look at the zipfile or the tarball it has a top level directory of: ryancramerdesign-ProcessWire-1d2b19e/... Do I keep this top level directory or do I just extract everything under it into my existing vhostX directories? So where should I install processwire to begin using it?
  17. Hi.. Im trying to get ProcessWire up and running, but I keep running into a wall. I configured the Lion server so it handles .htaccess files, and checked if mod_rewrite is there. Im running the installing process og ProcessWire perfectly, but when It comes to the live site and admin part. I keep getting: 404 Not Found from the server.. I think its something with the url rewrite that goes wrong.. I would we happy if some one can point me to a solution, because I really like to try ProcessWire.. (Getting tired og WordPress and Joomla.) Thanks in advance.. Bjørn Christiansen aka ChrisB
  18. Hi everyone, I have an existing PW site that has a news section and it's getting quite big. I'd like some pointers as to how to go about listing the entries: 1. by month for the current year and 2. by year for each year past eg 2011, 2010 etc. All the posts have date fields too if that makes it easier. Any help would be great. Thanks Marty
  19. I just installed processwire and seemingly I am not able to find where the admin is. I tried /admin , /administrator. I even couldn't find where in the config this is to be set or found neither a login link on the default template.
  20. I have an area of content 'Upcoming Events' which has title, text, image etc.. I want to be able to make visible on a page and then sometimes remove it. At the moment I can unpublish an 'Upcoming Events' page and that content is removed from the page where I display it, but i still have a bunch of empty HTML tags left over. What is the best way to have an area of content turn 'off' without leaving any trace?
  21. Hey guys, I've got a question about setting the body and headline field from the template. I've noticed when I set one of these fields and save the page, it doesn't actually save the value I set it to. Here's the code I'm using to set a headline: $website = $pages->get("user={$user}, path=/websites/"); $website->setOutputFormatting(false); if(!$input->post->headline) { $error .= "Please add your Headline. "; } else { $website->headine = $input->post->headline; } $website->save(); Is there something special I need to do to set this field?
  22. Hi all, I've been developing a small site using PW 2.2 on my dev account at phpfog and things have been going pretty smooth. So comes the time to move the site to production (running PHP 5.2.17, safe_mode off, PW debug set to true) and I've been unable to upload new images ever since. The site/assets folder is writable (also set permissions of all folder in it to 777 just in case). When I create a new page and try to upload a new image, the upload process doesn't start (nothing happens) but the file size is shown and the page's folder is created under assets/files. Upon inspection using Firebug's console I get a 403 Forbidden for the Ajax uploader's POST response: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>403 Forbidden</title> </head><body> <h1>Forbidden</h1> <p>You don't have permission to access /beta/processwire/page/edit/ on this server.</p> <p>Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.</p> </body></html> Checking phpinfo I found that that the upload_tmp_dir variable is not set (no value) so I tried overriding it in config.php as outlined in this thread. Still no luck. I dumped the site to my computer and upload works fine. Anybody have an idea what I'm doing wrong? Thanks!
  23. I'm building a website that creates pages, sets the template and once a payment has been processed the page needs to be set to published. I need to know how to set this in the PHP Page class. Is it just $page = new Page(); $page->published = FALSE;? I couldn't find out how to do this in the docs. Thanks Clint
  24. Hello to all of you, I'm new to Processwire and I've been trying desperately for a few hours to just... install it on my localhost (Ubuntu 12.04, Apache 2.2.22). You'll soon find out that I am not a professionel web developper, but still... this is driving me crazy and I'd love to get some help. To describe my problem briefly : installation goes fine, no problem. I set everything as asked during the process (writable directories and so on). Then I go to 'View my site' : just fine. And as soon as I hit ANY link on the Basic homepage, I get that 404 error quite a few talked about in other posts... So far, I've tested : - nonsens string in my .htaccess : throws a 500 error (sound good, no?) - re-read everything in my Apache setting (again I'm no professional and couldn't find anything wrong...) - checked the mod_rewrite in my phpinfo... Looks good. I'll put it underneath for those interested to help. - tried to uncomment the rewriteBase rule in the .htaccess. Nothing worked (actually, and that's CRAZY to me, it worked once on a reload (I DID see the ABOUT page simply putting for the nth time RewriteBase /mysubdir/, but it worked ONCE (can you believe this?) and never again. - tried restarting my Apache server many times... no change.... I can't think of anything else to do, so please, if someone can help, I'd greatly appreciate... Thanks in advance for your help and time. My phpinfo is attached.phpinfo.php.html Celfred. EDIT : Oh I'm SO sorry and ashamed... (Did I tell you I was no professional?) I had just one last idea before going to bed... trying one last change on my rewriteBase line and... It worked ! It's cool, but I can't believe it took me hours to find this out. Actually my server is installation is in private/processwire/ subfolder and I simply forgot the 'private' part in the path... I guess you can ignore my post now... Have a good night...
  25. Hi, I am a newbie to programming and I am developing this site for a client of mine(WIP) : http://greenpantry.in/test820fcec/ It is a single page site, where the content is divided into sections. I want to know if it would be feasible to use Processwire to manage the content of the site. From what I have read, processwire's templating system is based on pages. I want to know if the client will be able to edit each section individually from the admin panel, as I feel creating a single long template for the page will be kind of messy. 'our platters' and 'gallery' are the two sections they want to be able to update. Btw PW looks so fresh and this is probably a trivial thing to execute. I just wanted to be sure it was possible before i dive in. If this is possible, any pointers as to where I can start will also be very helpful as I am just now beginning to go through the docs/videos. Thank you!
×
×
  • Create New...