Jump to content

WireCodex

Members
  • Posts

    408
  • Joined

  • Last visited

  • Days Won

    4

Everything posted by WireCodex

  1. I meant that if you search in google you find 127 forum topics with the same problem in the processwire website, I read each of them, almost all with different situations/solutions (session.referer_check in php.ini, no space in server disk, file permissions, CSRF, database auto_increment, etc), with all in the forum trying to guess the solution, even some threads don't reach a final solution. It's good to know that you have not fallen into this situation. You're a lucky man Thanks for your advice
  2. I tried it, it does not work As I have seen in this forum the "This request was aborted because it appears to be forged" is very common and a serious black hole in PW It was very hard to convince the boss to use PW instead of the previous WP website! Maybe the PW's adventure ended for me
  3. When I put $config->protectCSRF = false; I get this when trying to login in the admin: This page isn’t working www.sitename.com redirected you too many times. Try clearing your cookies. ERR_TOO_MANY_REDIRECTS
  4. The website is running now... this morning I reloaded a dump from the database that I saved the day before doing the upgrade to mysql 5.7 and the frontend is working, except the FormBuilder forms and the Backend can't login .. keeps saying: This request was aborted because it appears to be forged. if I enabled $confg->debug now I get only this: Notice: Undefined index: type in /var/www/vhosts/sitename.com/httpdocs/site/assets/cache/FileCompiler/site/modules/ProcessGeneralSettings/ProcessGeneralSettings.module on line 65 in this line it have this: if ($field['type'] == 'Textarea') { I commented this lines in the ProcessGeneralSettings module and no receive more notices.. this is the Debug Backtrace: DEBUG MODE BACKTRACE ($config->debug == true): #0 /var/www/vhosts/sitename.com/httpdocs/wire/modules/Inputfield/InputfieldForm.module(145): ProcessWire\SessionCSRF->validate() #1 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(383): ProcessWire\InputfieldForm->___processInput(Object(ProcessWire\WireInputData)) #2 /var/www/vhosts/sitename.com/httpdocs/wire/core/WireHooks.php(714): ProcessWire\Wire->_callMethod('___processInput', Array) #3 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\InputfieldForm), 'processInput', Array) #4 /var/www/vhosts/sitename.com/httpdocs/wire/modules/Process/ProcessLogin/ProcessLogin.module(165): ProcessWire\Wire->__call('processInput', Array) #5 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(380): ProcessWire\ProcessLogin->___execute() #6 /var/www/vhosts/sitename.com/httpdocs/wire/core/WireHooks.php(714): ProcessWire\Wire->_callMethod('___execute', Array) #7 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessLogin), 'execute', Array) #8 /var/www/vhosts/sitename.com/httpdocs/wire/core/ProcessController.php(244): ProcessWire\Wire->__call('execute', Array) #9 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(380): ProcessWire\ProcessController->___execute() #10 /var/www/vhosts/sitename.com/httpdocs/wire/core/WireHooks.php(714): ProcessWire\Wire->_callMethod('___execute', Array) #11 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessController), 'execute', Array) #12 /var/www/vhosts/sitename.com/httpdocs/wire/core/admin.php(113): ProcessWire\Wire->__call('execute', Array) #13 /var/www/vhosts/sitename.com/httpdocs/site/modules/AdminThemeUikit/controller.php(15): require('/var/www/vhosts...') #14 /var/www/vhosts/sitename.com/httpdocs/site/templates/admin.php(15): require('/var/www/vhosts...') #15 /var/www/vhosts/sitename.com/httpdocs/wire/core/TemplateFile.php(287): require('/var/www/vhosts...') #16 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(380): ProcessWire\TemplateFile->___render() #17 /var/www/vhosts/sitename.com/httpdocs/wire/core/WireHooks.php(714): ProcessWire\Wire->_callMethod('___render', Array) #18 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\TemplateFile), 'render', Array) #19 /var/www/vhosts/sitename.com/httpdocs/wire/modules/PageRender.module(514): ProcessWire\Wire->__call('render', Array) #20 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(383): ProcessWire\PageRender->___renderPage(Object(ProcessWire\HookEvent)) #21 /var/www/vhosts/sitename.com/httpdocs/wire/core/WireHooks.php(714): ProcessWire\Wire->_callMethod('___renderPage', Array) #22 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\PageRender), 'renderPage', Array) #23 /var/www/vhosts/sitename.com/httpdocs/wire/core/WireHooks.php(808): ProcessWire\Wire->__call('renderPage', Array) #24 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\Page), 'render', Array) #25 /var/www/vhosts/sitename.com/httpdocs/wire/modules/Process/ProcessPageView.module(205): ProcessWire\Wire->__call('render', Array) #26 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(383): ProcessWire\ProcessPageView->___execute(true) #27 /var/www/vhosts/sitename.com/httpdocs/wire/core/WireHooks.php(714): ProcessWire\Wire->_callMethod('___execute', Array) #28 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessPageView), 'execute', Array) #29 /var/www/vhosts/sitename.com/httpdocs/index.php(55): ProcessWire\Wire->__call('execute', Array) #30 {main}
  5. this webspace is almost empty.. used only 514.7 MB from GBs available
  6. yes mysqli is enabled delete folders under assets tested too let's me try Duplicator installer check's Duplicator Compatibility Check.. passed
  7. PW core uses $db in many places: wire\core\Database.php line 73 $db = $config->dbName; wire\core\DatabaseMysqli.php line 37 $db = $this->db($method, 'method'); wire\core\ProcessWire.php line 373 $db = $this->wire('db', new DatabaseMysqli($config), true); I don't have any modules using this var... the modules can't load data from fields like textareas, profields, etc
  8. I don't know if I can rollback, it's a dedicated server in 1and1 and in Plesk I don't see options for that .. I did the upgrade using SSH
  9. File permissions.. Tested Config false options... Tested (doing that backend don't load) All files exist, this was a working website, only stop after upgrade mysql from 5.1 to 5.5 to 5.7 I want to clear the modules cache, but i can't use your option Modules > Site @ the bottom "clear compiled files" because I can't login to admin.. Can I delete the folder in assets?
  10. I reloaded a dump from the database that I saved the day before doing the upgrade to mysql and the frontend is now working, except FormBuilder forms .. but the backend keeps saying: This request was aborted because it appears to be forged.
  11. Hello everyone, I'm in an emergency. I upgrade mysql on my server and PW does not work anymore, any help is accepted because my company's page is broken now. The thread of this topic can be followed here: https://processwire.com/talk/topic/18917-heeelp-this-request-was-aborted-because-it-appears-to-be-forged/ The problem seems to be this: Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'ProcessWire\Database' does not have a method 'exec' in /var/www/vhosts/sitename.com/httpdocs/wire/core/DatabaseMysqli.php on line 38 Thank you in advance!
  12. I already read those topics ... Thanks very much Sergio
  13. PW 3.0.79 ... I only upgrade mysql from 5.1 to 5.5 to 5.7 with SSH .. in each step I upgrade the databases too.. the previous Warning is very strange, after that no variable works.. seem that PW don't execute the queries to the database
  14. the problem seems to be this: Warning: call_user_func_array() expects parameter 1 to be a valid callback, class 'ProcessWire\Database' does not have a method 'exec' in /var/www/vhosts/sitename.com/httpdocs/wire/core/DatabaseMysqli.php on line 38
  15. put back to the 3 php files at the root and get again the "Internal Server Error"
  16. I get the same in the Backend.. and in the frontend this new message: Error: Uncaught Error: Call to a member function render() on null in /var/www/vhosts/sitename.com/httpdocs/site/templates/includes/head-jsonld.php:25 Stack trace: #0 /var/www/vhosts/sitename.com/httpdocs/site/templates/_main.php(30): include() #1 /var/www/vhosts/sitename.com/httpdocs/wire/core/TemplateFile.php(297): require('/var/www/vhosts...') #2 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(380): ProcessWire\TemplateFile->___render() #3 /var/www/vhosts/sitename.com/httpdocs/wire/core/WireHooks.php(714): ProcessWire\Wire->_callMethod('___render', Array) #4 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\TemplateFile), 'render', Array) #5 /var/www/vhosts/sitename.com/httpdocs/wire/modules/PageRender.module(514): ProcessWire\Wire->__call('render', Array) #6 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(383): ProcessWire\PageRender->___renderPage(Object(ProcessWire\HookEvent)) #7 /var/www/vhosts/sitename.com/httpdocs/wire/core/WireHooks.php(714): P (line 25 of /var/www/vhosts/sitename.com/httpdocs/site/templates/includes/head-jsonld.php) This error message was shown because: Superuser has never logged in. Error has been logged.
  17. nop.. it works? in the docs said that should be at least this folders: /site/assets/cache/ /site/assets/logs/ /site/assets/sessions/ ..and now in the root I have this files: active.php index.php installed.php should be delete too? .. i'll make a backup and delete this
  18. ---- I enable $config->debug and get this in the frontend: Notice: Undefined variable: sitesetup in /var/www/vhosts/sitename.com/httpdocs/site/templates/_init.php on line 51 Notice: Trying to get property 'template_product' of non-object in /var/www/vhosts/sitename.com/httpdocs/site/templates/_init.php on line 51 Notice: Undefined variable: sitesetup in /var/www/vhosts/sitename.com/httpdocs/site/templates/_init.php on line 54 Notice: Trying to get property 'template_article' of non-object in /var/www/vhosts/sitename.com/httpdocs/site/templates/_init.php on line 54 Notice: Undefined variable: sitesetup in /var/www/vhosts/sitename.com/httpdocs/site/templates/_main.php on line 13 Notice: Trying to get property 'meta_add' of non-object in /var/www/vhosts/sitename.com/httpdocs/site/templates/_main.php on line 13 Notice: Undefined variable: sitesetup in /var/www/vhosts/sitename.com/httpdocs/site/templates/includes/head-prefetch.php on line 2 Notice: Trying to get property 'prefetch_twitter' of non-object in /var/www/vhosts/sitename.com/httpdocs/site/templates/includes/head-prefetch.php on line 2 Notice: Undefined variable: sitesetup in /var/www/vhosts/sitename.com/httpdocs/site/templates/includes/head-prefetch.php on line 7 Notice: Trying to get property 'prefetch_facebook' of non-object in /var/www/vhosts/sitename.com/httpdocs/site/templates/includes/head-prefetch.php on line 7 Notice: Undefined variable: sitesetup in /var/www/vhosts/sitename.com/httpdocs/site/templates/includes/head-prefetch.php on line 14 Notice: Trying to get property 'prefetch_google' of non-object in /var/www/vhosts/sitename.com/httpdocs/site/templates/includes/head-prefetch.php on line 14 Notice: Undefined variable: sitesetup in /var/www/vhosts/sitename.com/httpdocs/site/templates/includes/head-prefetch.php on line 22 Notice: Trying to get property 'prefetch_amazon' of non-object in /var/www/vhosts/sitename.com/httpdocs/site/templates/includes/head-prefetch.php on line 22 Notice: Undefined variable: sitesetup in /var/www/vhosts/sitename.com/httpdocs/site/templates/includes/head-prefetch.php on line 29 Notice: Trying to get property 'prefetch_custom' of non-object in /var/www/vhosts/sitename.com/httpdocs/site/templates/includes/head-prefetch.php on line 29 Fatal error: Uncaught Error: Call to a member function render() on null in /var/www/vhosts/sitename.com/httpdocs/site/templates/includes/head-jsonld.php:25 Stack trace: #0 /var/www/vhosts/sitename.com/httpdocs/site/templates/_main.php(30): include() #1 /var/www/vhosts/sitename.com/httpdocs/wire/core/TemplateFile.php(297): require('/var/www/vhosts...') #2 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(380): ProcessWire\TemplateFile->___render() #3 /var/www/vhosts/sitename.com/httpdocs/wire/core/WireHooks.php(714): ProcessWire\Wire->_callMethod('___render', Array) #4 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\TemplateFile), 'render', Array) #5 /var/www/vhosts/sitename.com/httpdocs/wire/modules/PageRender.module(514): ProcessWire\Wire->__call('render', Array) #6 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(383): ProcessWire\PageRender->___renderPage(Object(ProcessWire\HookEvent)) #7 /var/www/vhosts/sitename.com/httpdocs/wire/core/WireHooks.php(714): P in /var/www/vhosts/sitename.com/httpdocs/site/templates/includes/head-jsonld.php on line 25 Error: Uncaught Error: Call to a member function render() on null in /var/www/vhosts/sitename.com/httpdocs/site/templates/includes/head-jsonld.php:25 Stack trace: #0 /var/www/vhosts/sitename.com/httpdocs/site/templates/_main.php(30): include() #1 /var/www/vhosts/sitename.com/httpdocs/wire/core/TemplateFile.php(297): require('/var/www/vhosts...') #2 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(380): ProcessWire\TemplateFile->___render() #3 /var/www/vhosts/sitename.com/httpdocs/wire/core/WireHooks.php(714): ProcessWire\Wire->_callMethod('___render', Array) #4 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\TemplateFile), 'render', Array) #5 /var/www/vhosts/sitename.com/httpdocs/wire/modules/PageRender.module(514): ProcessWire\Wire->__call('render', Array) #6 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(383): ProcessWire\PageRender->___renderPage(Object(ProcessWire\HookEvent)) #7 /var/www/vhosts/sitename.com/httpdocs/wire/core/WireHooks.php(714): P (line 25 of /var/www/vhosts/sitename.com/httpdocs/site/templates/includes/head-jsonld.php) This error message was shown because: site is in debug mode. ($config->debug = true; => /site/config.php). Error has been logged. ---- and in the backend this: Field: Fieldtype 'FieldtypeMapMarker' does not exist Field: Fieldtype 'FieldtypeFontIconPicker' does not exist Field: Fieldtype 'FieldtypeRepeaterMatrix' does not exist Field: Fieldtype 'FieldtypeTable' does not exist Field: Fieldtype 'FieldtypeTextareas' does not exist ProcessWire: ProcessLogin: This request was aborted because it appears to be forged. DEBUG MODE BACKTRACE ($config->debug == true): #0 /var/www/vhosts/sitename.com/httpdocs/wire/modules/Inputfield/InputfieldForm.module(145): ProcessWire\SessionCSRF->validate() #1 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(383): ProcessWire\InputfieldForm->___processInput(Object(ProcessWire\WireInputData)) #2 /var/www/vhosts/sitename.com/httpdocs/wire/core/WireHooks.php(714): ProcessWire\Wire->_callMethod('___processInput', Array) #3 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\InputfieldForm), 'processInput', Array) #4 /var/www/vhosts/sitename.com/httpdocs/wire/modules/Process/ProcessLogin/ProcessLogin.module(165): ProcessWire\Wire->__call('processInput', Array) #5 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(380): ProcessWire\ProcessLogin->___execute() #6 /var/www/vhosts/sitename.com/httpdocs/wire/core/WireHooks.php(714): ProcessWire\Wire->_callMethod('___execute', Array) #7 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessLogin), 'execute', Array) #8 /var/www/vhosts/sitename.com/httpdocs/wire/core/ProcessController.php(244): ProcessWire\Wire->__call('execute', Array) #9 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(380): ProcessWire\ProcessController->___execute() #10 /var/www/vhosts/sitename.com/httpdocs/wire/core/WireHooks.php(714): ProcessWire\Wire->_callMethod('___execute', Array) #11 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessController), 'execute', Array) #12 /var/www/vhosts/sitename.com/httpdocs/wire/core/admin.php(113): ProcessWire\Wire->__call('execute', Array) #13 /var/www/vhosts/sitename.com/httpdocs/wire/modules/AdminTheme/AdminThemeDefault/controller.php(13): require('/var/www/vhosts...') #14 /var/www/vhosts/sitename.com/httpdocs/site/templates/admin.php(15): require('/var/www/vhosts...') #15 /var/www/vhosts/sitename.com/httpdocs/wire/core/TemplateFile.php(287): require('/var/www/vhosts...') #16 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(380): ProcessWire\TemplateFile->___render() #17 /var/www/vhosts/sitename.com/httpdocs/wire/core/WireHooks.php(714): ProcessWire\Wire->_callMethod('___render', Array) #18 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\TemplateFile), 'render', Array) #19 /var/www/vhosts/sitename.com/httpdocs/wire/modules/PageRender.module(514): ProcessWire\Wire->__call('render', Array) #20 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(383): ProcessWire\PageRender->___renderPage(Object(ProcessWire\HookEvent)) #21 /var/www/vhosts/sitename.com/httpdocs/wire/core/WireHooks.php(714): ProcessWire\Wire->_callMethod('___renderPage', Array) #22 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\PageRender), 'renderPage', Array) #23 /var/www/vhosts/sitename.com/httpdocs/wire/core/WireHooks.php(808): ProcessWire\Wire->__call('renderPage', Array) #24 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\Page), 'render', Array) #25 /var/www/vhosts/sitename.com/httpdocs/wire/modules/Process/ProcessPageView.module(205): ProcessWire\Wire->__call('render', Array) #26 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(383): ProcessWire\ProcessPageView->___execute(true) #27 /var/www/vhosts/sitename.com/httpdocs/wire/core/WireHooks.php(714): ProcessWire\Wire->_callMethod('___execute', Array) #28 /var/www/vhosts/sitename.com/httpdocs/wire/core/Wire.php(442): ProcessWire\WireHooks->runHooks(Object(ProcessWire\ProcessPageView), 'execute', Array) #29 /var/www/vhosts/sitename.com/httpdocs/index.php(55): ProcessWire\Wire->__call('execute', Array) #30 {main} I was using ProCache too
  19. HELP! On my dedicated server CentOS 6.9 with plesk Onyx, I upgrade mysql from version 5.1 to 5.5 and then to version 5.7, as indicated, to not break the mysql tables. After taht the frontend continued to work, but the backend did not. The message came out: This request was aborted because it appears to be forged. Then I try all the steps from here: https://processwire.com/docs/tutorials/troubleshooting-guide/page2 Nothing! Later I use TRUNCATE in the tables caches and session_login_throttle as it says here: https://processwire.com/talk/topic/16592-this-request-was-aborted-because-it-appears-to-be-forged/ It was worse! because in the frontend now I have an "Internal Server Error" and in the backend the screen showed in the picture. Any idea???
  20. I agree, https://gtmetrix.com/reports/www.cmscritic.com/z8JiOUJr
  21. I really need something like that many times. Perhaps a partial solution is a module based on Textarea that the Inputfield Type is an HTML editor with design blocks. I tried to develop one but since I'm not a "real" programmer, I could not make much progress. Maybe someone who knows how to develop modules in Processwire can do it, it does not seem very complicated. It was based on GrapesJS http://grapesjs.com/ an open source Javascript library and it is very easy to include it in a project https://github.com/artf/grapesjs#usage. Here you can see a working example http://grapesjs.com/demo.html, the library exports the HTML code that can be stored in the Textarea. You just have to include the CSS that the frontend uses to make it work.
  22. JPG Tested.. nop
  23. Doesn't work for me .. and this doesn't work either: <img src='<?=$config->urls->templates."images/logo.png"?>'> /* or usign the url directly either */ <img src='http://www.domain.com/site/templates/images/logo.png'> Before work's and the path is correct because in the other templates prints well Everything happened after updating the module.
  24. 312 here! + 21 Last used modules!
×
×
  • Create New...