Jump to content

Pixrael

Members
  • Posts

    395
  • Joined

  • Last visited

  • Days Won

    3

Everything posted by Pixrael

  1. 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.
  2. 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!
  3. 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
  4. 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
  5. put back to the 3 php files at the root and get again the "Internal Server Error"
  6. 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.
  7. 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
  8. ---- 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
  9. 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???
  10. I agree, https://gtmetrix.com/reports/www.cmscritic.com/z8JiOUJr
  11. 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.
  12. 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.
  13. The idea is get something simple to setup and simple to use.. the Matrix usually is complex to setup and fine tuned, and sometimes complex to the user, mainly when have depth.. and near to impossible to reuse it in other projects.. ah! and is not cheap too.. I was thinking in something simple and useful for build basic landing pages, ..easy to copy to another projects.. sometimes when we have many pages with crazy designs that not fit the regular "basic-page" (main+sidebar) or similar, we start to fill the site folder with several templates files.. but it's only and idea to refresh.. for me make sense.. or perhaps having a Textarea that store unrestricted HTML and can be edited with something like this http://grapesjs.com/
  14. Here we go .. The basic idea is an textarea fieldtype with a function somewhat similar to an website blocks builder, I know that currently this can be achieved using a Repeater, Repeater Matrix or Hanna Code, but perhaps this way would be easier for the developer/user and more flexible. The idea came after seeing this plug-in: https://formbuilder.online/ ... and the implementation could be based on these modules: https://github.com/blynx/TextformatterFunkyFunctions from @blynx https://github.com/outflux3/SettingsFactory from @Macrura https://github.com/Toutouwai/HannaCodeDialog from @Robin S Based on TextformatterFunkyFunctions we would have a folder for this type of field with the design blocks that we want to make available to the user: These block files would have main three sections: The Settings section for the Block UI could be based on the SettingsFactory code. A mockup of the user interface of the field would be: It would have drag and drop to add and sort the blocks, and display the generated Form by each block in order to enter the block data The field will have three display modes in the backend: BUILD - the first where field content is configured in visual and interactive mode: CODE - The second is the "real" configuration of the field as required by TextformatterFunkyFunctions and is the data that is stored in the Processwire DB. This mode could be hidden for some users: PREVIEW - The third one is the visualization of the field output, it could be done using Ajax requests to the module into an iframe or inserting the response in a DIV using jquery. Maybe some code of this module will work: http://modules.processwire.com/modules/fieldtype-runtime-markup/ from @kongondo I hope that I have been able to explain the idea correctly, but I can not wait for it to be inspired to make a perfect explanation, .. waiting for that moment and it has been in my trunk for a long time .. It's just an idea to debate, maybe it will be an inspiration for other things, or for someone who wants to develop it (as a commercial module or not)
  15. some time ago I has an idea to mix some modules and codes that we have in our modules "eco-system" to do something similar.. soon I'll post here my idea
  16. something interesting to make the backend faster without modifying everything: https://m.signalvnoise.com/stimulus-1-0-a-modest-javascript-framework-for-the-html-you-already-have-f04307009130 code: https://github.com/turbolinks/turbolinks https://github.com/stimulusjs/stimulus
  17. in the jquery function you can use this: $("# dc-container").html("loaded:" + pageData + "(by jquery ajax)"); instead of document.getElementById("dc-container").innerHTML = 'loaded:' + pageData + '(by jquery ajax)'; to be consistent if you already use the library
  18. @bernhard Incredible results! Can you summarize which option you used finally?
  19. try this https://modules.processwire.com/modules/template-decorator/
  20. but @heldercervantes has not said any lie there .. you know any security issue? .. If not, then PW is the safest until proven otherwise
×
×
  • Create New...