Jump to content

Search the Community

Showing results for tags 'Config'.

  • 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. Hello, I am using Antti Peisa's Multisite module. For those people who are not familiar with it. Here is the link: http://modules.processwire.com/modules/multisite/. It works like this: It gets the current URL that visits the page via $config->httpHost and then redirects to a page who has the same name (e.g. get it via: $pages->get('/www.multi-site.com/')). The problem: $config->httpHost is locally something like "multi-site.local" and the redirection does not work because the ".com" url is hardcoded as page name. So I thought: Why not solve this problem by replacing the value of $config->httpHost in a module via: $this->wire->config->httpHost = str_replace('.local', '.com', wire('config')->httpHost); Is this a good way of doing this? And if yes: How can I say that my module loads first in the booting process? Are there any dangers with this approach? If so: any better ideas? I am not a great programmer Thank you!
  2. Hi fellow Processwirers (?), I was wondering if anyone here uses PHPStorm in conjunction with PhpUnit? In particular, I'm trying to get it to work with Processwire so I can incorporate the Pages & other intrinsic Processwire objects into the testing. Any example or real life configuration examples would be most welcome. Thanks in advance.
  3. There's a relatively new Config module which enables setting basic config options directly in the admin. Was wondering if you could clear up some points as I'm a bit confused regarding the process and which files take precedence. Q1: Risk of wire/config being overwritten If we want to add a custom Configuration property under the Core tab, we are supposed to edit wire/config.php. For example, I made a new test property in wire/config.php. Refreshing the Config module successfully displays my custom property. Yet on the official docs it states that wire/config.php should not be edited as it'll be overwritten. Q2: Precedence or inheritance of site Vs wire config So, should custom settings instead be setup in site/confing.php? I don't think they should as adding new Configuration settings here has no effect on wire/config.php or the available Config Module properties Q3: New Site tab Again, adding anything to the site/config.php has no effect on my Config Module and the tabs are only. Core | Custom and Remove. Yet the documentation differs here.... I'm wondering if the Custom tab is what you meant instead of Site? Q4: Site Title In the current Custom tab, there is a Config property called Site Title. Where is the Config Module reading this from? It's not set in Site or Wire config.php that I can see.
  4. I have IIS 8.5 running PHP 5.6 and i can't get Processwire to work. Normal PHP executes, but when i go to processwire it's just a blank page, even trying to display PHP errors just returns a blank page. my web.config is as follows (which worked on a previous windows processwire setup) <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <rewrite> <rules> <rule name="CLEAN URLS" stopProcessing="true"> <match url="^(.*)$" ignoreCase="false" /> <conditions logicalGrouping="MatchAll"> <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" /> <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" /> </conditions> <action type="Rewrite" url="index.php?it={R:1}" appendQueryString="true" /> </rule> </rules> </rewrite> </system.webServer> </configuration> Can anyone with IIS and windows server knowledge help out?
  5. Hi, I try to move my website. I already moved the database, changed the config.php content, but I get: Parse error: syntax error, unexpected T_VARIABLE in www/v3/index.php on line 106 the line 106 contains: $config->paths = clone $config->urls; What did I miss?
  6. Hi Guys, I have processwire installed on a site which was working fine up until very recently. I am getting the error Unrecognized HTTP host: My config file is as follows; $config->httpHosts = array( 'localhost', // our primary hostname 'corrymeela-cms.3sixtynearlythere.co.uk', // staging server 'www.corrymeela.org' // Live server ); I have updated the htaccess file to the most recent. I cannot update any content at the minute I am getting this error: Cannot be published until errors are corrected Can anyone help please? Warmest wishes, Mel
  7. I'm working with a PW 2.5.3 install. Here http://processwire.com/blog/posts/processwire-core-updates-2.5.14/ there is a quick tutorial on setting up an alternate user template and parent. I followed it to the T, but it didn't work; when adding a new user, there was no choice of template, and once the user was created the alternate template I had set wasn't even among the select options. Has anyone managed to do this or even just an alternate template successfully? The alt. tpl. is what I rly. need... I just tried it twice over and then erased and undid everything 2x too, so... Then I only unchecked "Don't allow pages to change their template?", cloned user template (id=75), added "$config->userTemplateIDs = array(3, 75);" to config.php created a new user No alternate template option still. This should be able to work right? Because I don't see a date for that blog post but do only see comments from 5 days ago, but it says 2.5.13, I'm using 2.5.3.
  8. If i have a template that requires scripts added in head and at the end of body. Do you have any idea how to handle this whith $config->scripts. Another point is how to handle if its necessary to add not just files but small scripts that need to be added at the head or bottom.(like google analytics). Is there something like : $config->scripts-bottom $config->scripts-direct Maybe there is a way to make such an array, besides from silmply creating the var.
  9. I added some input fields to the Textarea input tab with a hook: $this->addHookAfter('InputfieldTextarea::getConfigInputfields', function(HookEvent $event) { // field generation here }); The fields are rendered perfectly, all fine here: When I hit "save" the new config values are saved to the database. This is what I see in the field's config in the fields table, all fine, great: {"textformatters":["TextformatterParsedownExtra"],"inputfieldClass":"InputfieldTextarea","collapsed":2,"rows":16,"contentType":0,"trackChangesInterval":777,"cssTheme":"theme-solarized-dark"} But when I want to access the new saved data from anywhere, I can't, it's not there. Only the standard values from textarea are there but not the custom ones. What else do I have to do to make them accessible from the respective fields instance? The are there but do not seem to be added/set to the instances. PS: PW's docs need some serious work =( Thanks!
  10. Hi, I wanted to know if it is ok to change the session name in config.php from 'wire' to 'PHPSESSID'? i.e, from: $config->sessionName = 'wire'; to: $config->sessionName = 'PHPSESSID'; Are there any repercussions of doing this?
  11. I have searched the forums and PW documentation and can't find anything on this topic. Is there a config someone has implemented for using PW in multiple environments? I'm using Git with DeployHQ to deploy changes and would like a config that will detect which environment the site is on thusly loading the appropriate DB details.
  12. Just a quick one. Is it possible to move my prependTemplateFile to a subdirectory with templates? setting $config->prependTemplateFile = 'includes/_init.php' doesn't work for me
  13. In case you didn't know or had forgotten, in PW you can edit /site/config.php and set $config->debug = true; to help track down errors. I've often found 'soft errors' (bad practice PHP etc (something you get if you are PHP 'lite' like I am)) that were previously hidden are displayed when this is set to true. But I also found I set it and forget that it's set then sometimes see a page load slightly slowly or with a visible 'flash' and wonder what's wrong, only later remembering I have debug left on. So now as a reminder I echo (if the setting is true) a reminder somewhere obvious such as adjacent to the homepage (or every pages's) H1. It's good to be reminded since going to a production site with it set to true is NOT recommended (API doc). This is the simple test and echo I now add: if(wire('config')->debug) echo "<span class='alert'>Flashy? Slow? Probably because of \$config->debug = true;</span>";
  14. Hello, I discovered processwire a couple of days ago and I am very impressed so now I am integrating it with the Yii framework (once complete I'll post a tutorial with code), so far it is going well but I do seem to have a problem with setting a new path for a $page->template->filename. Setting $config->paths->templates in the PW config.php file works fine but I want to be able to set Yii-specific config variables after I have included the PW index.php. I assumed that by setting $wire->config->paths->templates that this would be reflected in $page->template->filename but that doesn't seem to be the case. Is this a bug or am I confused? Any advice greatly appreciated.
  15. Title says it all really? Any idea why config->urls->root would display nothing? I'm guessing it may have to do with my config file but I've never seen this issue before... Thanks
  16. hello forum, i'm an absolute newbie to pw who has worked (and still works) with textpattern and contao. i have a firm grasp of html, css and some of jquery but very little of php (not to say nothing at all 8) ). i came across processwire and it looks very, very promising to me. i installed locally on xammp. however, immediately i'm having my first questions. pleas apologize, if this are silly questions from a pro's point of view: - on finishing the installation i got the following message: but how do i do that? does that refer to the permissions my ftp user has? and what would be the right permission (0000)? - within /site/config.php i found the following comment: does that mean, all directories processwire will creates will have assigned 0777 permissions? this doesn't matter to me on localhost, but live, in a shared hosting environment, this seems to be a high risk. if so, is that really necessary or can it be overcome somehow? thanks for answering and for your time! totoff
×
×
  • Create New...