-
Posts
701 -
Joined
-
Last visited
Everything posted by Christophe
-
Ok. Thanks. I was wondering if it could be anything else. I have added some code in a _disclaimer.php file and in home.php. But, I'm now trying to make the modal dialog work (like on the modal.html page) in the homepage itself first. For the moment, I'm not sure how to make the modal dialog appear on top of the homepage at page load. And if I'll need to hide the "open" button, or won't need it at all.
-
Hello, For a ProcessWire 2.7.2 website, I need to add a Disclaimer pop-up when the homepage is loaded. I'm using UIkit, and so I want to use the modal componant: http://getuikit.com/docs/modal.html I'll try to create a pop-up with several options from this modal.html web page. Do you think <?php if(!$session->noPop) include("./popup.inc"); $session->noPop = 1; ?> would still work? What is noPop, is it in the core? I guess I could also use something like _popup.php or _disclaimer.php. Where is the best place to insert it? At the top of the homepage template file? And what if I have a hidden Disclaimer page in the back-end? Has someone already done it with UIkit? When a visitor clicks on the "validation" button, the modal has to disappear of course. Thanks in advance for your help!
-
Could something similar to foreach($pages->find('parent.template=templatename, sort=sort') as $writer) { be of some use? I had to use it recently.
- 13 replies
-
- navigation
- child
-
(and 1 more)
Tagged with:
-
Can you paste the content of your mystyles.js here? No comma is missing, and you don't have a comma at the end? It already happened to me while adding or changing (the order of) some lines. I had the same problem as yours at least once, if I remember well, or perhaps it was a variant, but I don't remember what was the problem.
-
Hello, Do the related css rules already exist? And, in Admin > Setup > Fields > Edit Field: body (or another field), and then in the "Input" tab, have you allowed new classes, etc. in "Extra Allowed Content", so that CKEditor doesn't remove them?
-
Happy New Year/2016 to Everybody!
-
So.. My first newbie question to the community
Christophe replied to Zislatik's topic in Getting Started
Hello, Could you paste here the source code, before and after pasting it in CKEditor (you can save the page, or you can normally just "validate" the source code window and then come back to the same window to copy the code)? Does you code contain divs? By default div tags are converted to paragraph tags normally. For each field like this one, you have to authorize in its settings the use of particular classes, etc. And, you can customize a Style drop-down list in CKEditor. Example Admin > Setup > Fields > Edit Field: body, and then in the "Input" tab: Extra Allowed Content Custom Editor JS Styles Set I've had to customize all this in order to use UIkit specific markup in at least the (CKEditor) Body field. NB: is it what you are really seeing in your Summary and Body fields, or is the image altered (for privacy purposes...)? -
Thanks. I'll try this (and the module) one day.
-
I've decided not to recreate the English language, to not take the "risk". I don't really need it. And I'm not sure if I want to test changing the language to "Català" (perhaps with another user). I only need it (perhaps) later for the front-end.
-
I had the English language's status "Hidden" and have unchecked it to see if it could be the cause, in case, and this is appearing at the top of the page: Session: Modification : status Session: Page enregistrée : /prcsswr/setup/languages/en/ (1 changement) LanguageSupport: Refreshing other language page IDs Languages: language en is missing column pages.name1051 Pages: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'pages.name1051' in 'where clause' Languages: language en is missing column field_title.data1051 Pages: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'field_title.data1051' in 'field list' I think I'm going to delete this language and recreate it to see if it changes anything. Edit: after hitting the Delete button (in French) I now have: Notice: Undefined property: User::$language in /home/xyz/www/wire/modules/LanguageSupport/LanguageSupportFields.module on line 289 Notice: Undefined property: User::$language in /home/xyz/www/wire/core/PageFinder.php on line 1006 Notice: Undefined property: User::$language in /home/xyz/www/wire/modules/LanguageSupport/LanguageSupportFields.module on line 289 Notice: Undefined property: User::$language in /home/xyz/www/wire/core/PageFinder.php on line 1006 Notice: Undefined property: User::$language in /home/xyz/www/wire/modules/LanguageSupport/LanguageSupportFields.module on line 289 Notice: Undefined property: User::$language in /home/xyz/www/wire/core/PageFinder.php on line 1006 Notice: Trying to get property of non-object in /home/xyz/www/wire/modules/LanguageSupport/Languages.php on line 390 Notice: Trying to get property of non-object in /home/xyz/www/wire/modules/LanguageSupport/Languages.php on line 390 Notice: Trying to get property of non-object in /home/xyz/www/wire/modules/LanguageSupport/Languages.php on line 390 Notice: Trying to get property of non-object in /home/xyz/www/wire/modules/LanguageSupport/Languages.php on line 390 Catchable fatal error: Argument 1 passed to Pages::cache() must be an instance of Page, boolean given, called in /home/xyz/www/wire/core/Pages.php on line 448 and defined in /home/xyz/www/wire/core/Pages.php on line 1891 Recoverable Fatal Error: Argument 1 passed to Pages::cache() must be an instance of Page, boolean given, called in /home/xyz/www/wire/core/Pages.php on line 448 and defined (line 1891 of /home/xyz/www/wire/core/Pages.php) This error message was shown because site is in debug mode ($config->debug = true; in /site/config.php). Error has been logged. I'm not sure what I'm going to do/decide now... After refreshing the page it's now: Session: Page supprimée : /xxx/setup/languages/en/ Session: Updated language en (deleted) Session: deletePageField, Page:1051, Field:language_files_site Session: deletePageField, Page:1051, Field:language_files Session: SQLSTATE[42000]: Syntax error or access violation: 1091 Can't DROP 'name1051_parent_id'; check that column/key exists Other refresh: no more top message(s)... (but do I have to drop 'name1051_parent_id' manually(?)...) Edit: 'name1051_parent_id' doesn't exist, so...
-
Strange, yes... I have 4 users currently : superuser, "moderate" permissions user, "very limited" permissions user, and guest. superuser and "moderate" permissions user already existed (their name and password were changed). As I've mentioned above, the only one appearing seems to be the superuser (1134) for which I've just changed the language. The website is hosted at OVH, so I can view a backup from 1 day or 7 days before (snapshots) via PHPMyAdmin. I'm about to look. Edit: yesterday, only the language code was different. Seven days before, there was no database... I'm going to import another backup made yesterday before the upgrade to 2.7.2 via the Upgrades module, but chances are that it will show the same information.
-
I have a "41" only in Table: field_language_files. In Table: field_language, in fact, I only have: pages_id data sort Textes complets 1134 1051 0 Effacer Effacer Copier Copier Modifier Modifier 1051 being English. I'm clueless... (for the moment) Edit: so 1134 would be the superuser's new id (as I changed its username and password)... As it wasn't 41, I wasn't sure before if it was there that I had to make the modification. I've just changed it to 1048 and now it's working again. Perhaps I should recreate the English language to see if it changes something...
-
I'm going to try but I'm not sure how to do this. There are perhaps several places where the changes have to be made. Edit: I don't find where/how the "relations" between the users ("name" or id?) and the languages ("name" or id?) are stored for the moment.
-
Hello horst, and thank you for trying to help. I've just done as you've suggested. I've also cleared the browser's cache, in case. It changes nothing. I have the same error message(s) when I try to log in with the superuser account (for which I changed the language to English and then had the issue). In /site/assets/logs/exceptions.txt, I see 6 times the following line(s): Error loading GitHub branches https://api.github.com/repos/ryancramerdesign/Processwire/branches (in /site/modules/ProcessWireUpgrade/ProcessWireUpgradeCheck.module line 266) Upgrading via the Upgrades module didn't go smoothly that time. There was always a red-background message. In the end, I vaguely remember not knowing if everything had gone ok and having to log out and/or perhaps to clear the browser's cache in order to have the Upgrades page loaded normally again. I don't know if the problem was already there or if this changed something. But normally the database doesn't change from 2.7.1 to 2.7.2. Just because I changed the setting from French to English for the superuser I now can't log in and have this error message(s).
-
So what could I do to gain back access to the back-end for the superuser? How can I change the language setting back to Français (French) in PHPMyAdmin or elsewhere, in order to create a new English language and see if it changes something? (I've replaced the wire folder, .htaccess and index.php, in case.)
-
Export fields/templates/configuration from one site to another
Christophe replied to antpre's topic in Wishlist & Roadmap
Have you already "met" Site Profile Exporter?: http://modules.processwire.com/modules/process-export-profile/ Edit: sorry, it's not what you want... -
PHPMyAdmin LanguageSupportPageNames is 3 times in Table: caches. And: field_language_files pages_id sort description modified data created Textes complets 1048 101 2015-08-17 20:01:16 wire--modules--languagesupport--languagesupportpag... 2015-08-17 20:01:16 Effacer Effacer Copier Copier Modifier Modifier modules id class flags data created Textes complets 198 LanguageSupportPageNames 3 {"moduleVersion":9,"pageNumUrlPrefix1048":"page","... 2015-12-15 15:32:09 Effacer Effacer Copier Copier Modifier Modifier Does it mean that only French (1048) has access/permission(s) or whatever "connection"? So there's no 1051 (English) or 1193 (Català)? NB: they have no language files added. Could it come (a little) from having converted fields to their multilanguage versions?
-
field_language pages_id data sort Textes complets 1134 1051 0 Effacer Effacer Copier Copier Modifier Modifier field_title pages_id data data1193 Textes complets 1051 English NULL Effacer Effacer Copier Copier Modifier Modifier pages parent_id id templates_id name status modified modified_users_id created created_users_id published sort name1022 status1022 name1193 status1193 Textes complets 1047 1051 49 en 1025 2015-12-15 15:19:53 1134 2015-08-17 20:02:12 1046 2015-08-17 20:02:12 1 NULL 1 NULL 1 Effacer Effacer Copier Copier Modifier Modifier pages_access pages_id templates_id ts Textes complets 1051 2 2015-11-12 19:58:36 Effacer Effacer Copier Copier Modifier Modifier Français (French language files) is 1048. "Català" (no language files) is 1193.
-
Hello LostKobrakai, I hope you're doing well. Yes, I have language modules installed. English is not the default language in this case. It's when I switched to the English language that all this happened. For this website, I don't remember switching before so perhaps the problem existed from the beginning. The basis of this website is from another one that doesn't have language modules installed. Apparently, I can log in with a "normal" user (with "moderate" permissions) who can manage pages. I can't log in with a very limited user (who can only view pages for the moment), but no error message(s). Before it normally worked (I'll have to check again later). Edit: I've just looked in phpmyadmin, I hadn't updated the username (instead of 1 somewhere it is now 01). I wonder what I can do to (securely) remove this issue, and why it happened...
-
I was logged in to the back-end of a live development website (protected by .htpasswd), editing a contact page, when I decided to change, in another tab, the superuser's language to English (second language) to check some labels/texts. After doing so I was logged out with the following message: Fatal error: Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'pages.name1051' in 'order clause' (in /home/xyz/www/wire/core/PageFinder.php line 298) #0 [internal function]: PageFinder->___find(Object(Selectors), Array) #1 /home/xyz/www/wire/core/Wire.php(398): call_user_func_array(Array, Array) #2 /home/xyz/www/wire/core/Wire.php(333): Wire->runHooks('find', Array) #3 /home/xyz/www/wire/core/Pages.php(216): Wire->__call('find', Array) #4 /home/xyz/www/wire/core/Pages.php(216): PageFinder->find(Object(Selectors), Array) #5 [internal function]: Pages->___find('id>0, sort=name...', Array) #6 /home/xyz/www/wire/core/Wire.php(398): call_user_func_array(Array, Array) #7 /home/xyz/www/wire/core/Wire.php(333): Wire->runHooks('find', Array) #8 /home/xyz/www/wire/core/PagesType.php(231): Wire->__call('find', Array) #9 /home/xyz/www/wire/core/PagesType.php(231): Pages->find('id>0, sort=name...', Array) #10 /home/xyz/www/wire/core/PagesType.php(3 in /home/xyz/www/index.php on line 248 Error: Exception: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'pages.name1051' in 'order clause' (in /home/xyz/www/wire/core/PageFinder.php line 298) #0 [internal function]: PageFinder->___find(Object(Selectors), Array) #1 /home/xyz/www/wire/core/Wire.php(398): call_user_func_array(Array, Array) #2 /home/xyz/www/wire/core/Wire.php(333): Wire->runHooks('find', Array) #3 /home/xyz/www/wire/core/Pages.php(216): Wire->__call('find', Array) #4 /home/xyz/www/wire/core/Pages.php(216): PageFinder->find(Object(Selectors), Array) #5 [internal function]: Pages->___find('id>0, sort=name...', Array) #6 /home/xyz/www/wire/core/Wire.php(398): call_user_func_array(Array, Array) #7 /home/xyz/www/wire/core/Wire.php(333): Wire->runHooks('find', Array) #8 /home/xyz/www/wire/core/PagesType.php(231): Wire->__call('find', Array) #9 /home/xyz/www/wire/core/PagesType.php(231): Pages->find('id>0, sort=name...', Array) #10 /home/xyz/www/wire/core/PagesType.php(3 This error message was shown because site is in debug mode ($config->debug = true; in /site/config.php). Error has been logged. The website was recently upgraded (with the Upgrades module) from 2.7.1 to 2.7.2. If I clean the browser's cache I can access the font-end again, but when I try to log in I see again this message(s) (and can't see the font-end neither). (Recently, with debug mode on, I've seen some other messages with red backgrounds appearing sometimes. They usually go away after disconnecting, cleaning the browser's cache, connecting again... If I see some again I will copy-paste them. I don't remember if it was only "forged" types of messages.)
-
I had enabled debug mode and checked a bit the source code. I've just done it again. Apart from the third email that is prepended with �� the rest seems ok. The following emails are perhaps not displayed correctly because of the third one.
-
uikit Dropdown "Navbar modifier" menu converted to ProcessWire
Christophe replied to Christophe's topic in General Support
More complete solution (taking hidden pages into account): in _head.php $cwsc_active = $page === $h_child || $h_child->children("include=hidden")->has($page) ? " uk-active" : ""; in, for example, basic-page-parent.php (or basic-parent-page.php) <?php if($page->first_child_redirect) $session->redirect($page->child("include=hidden")->url); // First child redirect if the checkbox is checked ?> -
Hello, On a live development website, powered by ProcessWire 2.7.1, I've just updated Email Obfuscation (EMO) from 1.0.2 to 1.0.4. via the Upgrades module. Now, on a directory page, the first two email addresses are ok, the third one is "replaced" by the � sign (Firebug -> � <span id="emo_email_3" class="emo_email"></span>), and all the following ones are replaced by "Enable JavaScript to view protected content.". (I've just upgraded to ProcessWire 2.7.2, it doesn't change anything.) Source code First two email addresses and all the other ones except the third one: <span id="emo_email_[number]" class="emo_email">Enable JavaScript to view protected content.</span> Third one: �<span id="emo_email_3" class="emo_email">Enable JavaScript to view protected content.</span>
-
On a live development website, powered by ProcessWire 2.7.1, I've just upgraded Email Obfuscation (EMO) from 1.0.2 to 1.0.4 via Administration >Configuration >Upgrades. And now when I go to the Upgrades module page I have "The process returned no content." and : Modules: Detected 1 module version change (will be applied the next time each module is loaded): ProcessLanguageTranslator: 1.0.0 => 1.0.1 AND ProcessWire: ProcessWireUpgrade: Error loading GitHub branches https://api.github.com/repos/ryancramerdesign/Processwire/branches DEBUG MODE BACKTRACE ($config->debug == true): #0 /home/xxx/www/site/modules/ProcessWireUpgrade/ProcessWireUpgradeCheck.module(129): ProcessWireUpgradeCheck->getCoreBranches() #1 /home/xxx/www/site/modules/ProcessWireUpgrade/ProcessWireUpgrade.module(164): ProcessWireUpgradeCheck->getVersions() #2 /home/xxx/www/wire/core/ProcessController.php(236): ProcessWireUpgrade->execute() #3 [internal function]: ProcessController->___execute() #4 /home/xxx/www/wire/core/Wire.php(398): call_user_func_array(Array, Array) #5 /home/xxx/www/wire/core/Wire.php(333): Wire->runHooks('execute', Array) #6 /home/xxx/www/wire/core/admin.php(94): Wire->__call('execute', Array) #7 /home/xxx/www/wire/core/admin.php(94): ProcessController->execute() #8 /home/xxx/www/wire/modules/AdminTheme/AdminThemeDefault/controller.php(13): require('/home/xxx...') #9 /home/xxx/www/site/templates/admin.php(15): require('/home/xxx...') #10 /home/xxx/www/wire/core/TemplateFile.php(182): require('/home/xxx...') #11 [internal function]: TemplateFile->___render() #12 /home/xxx/www/wire/core/Wire.php(398): call_user_func_array(Array, Array) #13 /home/xxx/www/wire/core/Wire.php(333): Wire->runHooks('render', Array) #14 /home/xxx/www/wire/modules/PageRender.module(422): Wire->__call('render', Array) #15 /home/xxx/www/wire/modules/PageRender.module(422): TemplateFile->render() #16 [internal function]: PageRender->___renderPage(Object(HookEvent)) #17 /home/xxx/www/wire/core/Wire.php(398): call_user_func_array(Array, Array) #18 /home/xxx/www/wire/core/Wire.php(333): Wire->runHooks('renderPage', Array) #19 /home/xxx/www/wire/core/Wire.php(459): Wire->__call('renderPage', Array) #20 /home/xxx/www/wire/core/Wire.php(459): PageRender->renderPage(Object(HookEvent)) #21 /home/xxx/www/wire/core/Wire.php(333): Wire->runHooks('render', Array) #22 /home/xxx/www/wire/modules/Process/ProcessPageView.module(187): Wire->__call('render', Array) #23 /home/xxx/www/wire/modules/Process/ProcessPageView.module(187): Page->render() #24 [internal function]: ProcessPageView->___execute(true) #25 /home/xxx/www/wire/core/Wire.php(398): call_user_func_array(Array, Array) #26 /home/xxx/www/wire/core/Wire.php(333): Wire->runHooks('execute', Array) #27 /home/xxx/www/index.php(235): Wire->__call('execute', Array) #28 /home/xxx/www/index.php(235): ProcessPageView->execute(true) #29 {main} I've logged out, I've cleaned the browser cache... but it changes nothing. Edit: putting $config->debug == false; and then $config->debug == true; back has made everything come back to normal.
-
Again, what's the secret (of ProcessWire's Forums)? I've created this topic less than 30 minutes ago, and Google mentions "14 hours ago".