Jump to content

Mirza

Members
  • Posts

    32
  • Joined

  • Last visited

2 Followers

About Mirza

  • Birthday February 7

Profile Information

  • Gender
    Male
  • Location
    Dubai, United Arab Emirates

Recent Profile Visitors

1,478 profile views

Mirza's Achievements

Jr. Member

Jr. Member (3/6)

2

Reputation

  1. Hi @Sevarf2 I am also dealing with the same problem, by any chance did you have any solution to this problem?
  2. @Robin S Thank you for your reply I have already sent a direct message on pro modules support, awaiting his response.
  3. Hi All, Thanks for all the replies. * We have already enabled the opcode. * We are using PHP 7.2.6 already. * Also, We have paid lister pro people are using it already. * We have used ProCache also, but not much help. * Our server Process Memory is going high as 2.5GB, Can you please advice/suggest us how to optimize. * Our Db health is good. * Php-fpm process memory is going high. @Robin S We are not using any website against this, it's just a centralized data so Profiler will not help us. This system will just import from JSON and export to JSON using cronjobs. We have also the paid profiler as well, but not helpful. Is there any module where I can monitor processes running currently? Appreciate your support on this. Thanks in advance.
  4. Hi All, Hope you are all doing good. We have the system which has 12 Million pages, We have used ProCache also, but not much help. We have 40+ agents are working on the pages. Our server Process Memory is going high as 2.5GB, Can you please advice/suggest us how to optimize. Our Db health is good. Php-fpm process memory is going high. We are using the ListerPro as well. Is there any module where I can monitor processes running currently? Appreciate your support on this. Thanks in advance.
  5. Hi, Awesome's, I am writing this post since I am facing the issue of performing slow admin panel. Let me give a background, we have 40+ people adding content into the admin panel, we have pages around 1.5 million. When people working all together in this system, we are facing the slow performance or PHP(fpm) consumption is getting higher. Please give me any suggestions, on how to optimize an admin panel to accommodate 1.5 Million pages or more.
  6. Thanks @DaveP @Pixrael @adrian for your answers. Immediate after login I need to execute a javascript, but that didn't happened with admin custom files module or I am not adding the correct Process currently added ProcessLogin But it is not triggering. worst part is when i click logout, its adding the login script. Any help will be appreciated.
  7. Hi All, Is it possible to add GA scripts to admin panel pages, so that we can track all the users login/logout and each(edit) page duration per user using GA scripts. Please let me know your suggestions. Thanks in advance.
  8. Hi Webhoes, Hope you are doing good Please find the below corrected piece of code. <?php namespace ProcessWire; /** * @global Sanitizer $sanitizer * @global Inputfield $input * @global Page $page * @global Page $pages */ //if user has send a form you can use $input rather that $_POST if ($input->post->aFormFieldName) { //create page if form submitted $p = new Page(); $p->setOutputFormatting(false); $p->parent = $sanitizer->selectorField($_POST['country']);//Country should exists in the page tree $p->template = 'population'; // example template $p->title = $sanitizer->pageName($input->post->name); $p->name = $sanitizer->pageName($input->post->name); $p->email = $sanitizer->pageName($input->post->email); $p->body = $sanitizer->text($input->post->body); $p->save(); echo "page ID {$p->id} created!<br>"; return; // stop with template code here } ?> <h4>Add a sighting</h4> <form method="post" action='<?php echo $page->url; ?>'> Location <input type="text" name="name"><br> Country <select name="country"> <?php foreach ($pages->get(1022)->children as $country) { echo '<option value="' . $country->id . '>' . $country->title . '</option>'; } ?> </select> Subspecie <select name="subspecie"> <?php foreach ($pages->get(1027)->children as $subspecie) { echo '<option value="' . $subspecie->id . '>' . $subspecie->title . '</option>'; } ?> </select> Remark <input type="text" name="body"> E-mail: <input type="text" name="email"><br> <input type="submit" name="aFormFieldName" /> </form> Please check if it helps.
  9. Hi All, I am trying to include the unit tests into our project which is in Processwire(I love it). Directory structure for the same will be shown below Here PWTestCase.php is the parent file where it is getting inherited from the PHPUNIT framework TestCase class and It is in same namespace ProcessWire; as shown below Now I have a basic unit test(FuncTest.php as shown below) to check the language calling the function getLanguage() residing in site/templates/_func.php. ***when try to run this test, getting undefined function getLanguage as shown below*** Since I am using namespace ProcessWire; & bootstraping processwire in PWTestCase why i am not able to access functions? Can you please suggest where i am going wrong? Thanks in advance.
  10. Thanks for the response, But that didn't work, page name should be in english. Trying for another solution.
  11. Thanks for the quick reply, I ran out with some issues earlier with php 7.1. Let me try one more time.
  12. Any plans to support for processwire with php 7?
  13. Hi All, Arabic content changes not available in page getChanges method While editing the page from admin panel in the multi-language field, added a hook to save the changes made to the page. $this->pages->addHookAfter('saveReady', $this, 'hookUpdateLog'); public function hookUpdateLog(HookEvent $event) { $page = $event->arguments[0]; if(in_array($page->template->name, $this->templateList)) { $this->logFieldChanges($page); } } public function logFieldChanges($page) { $changes = $page->getChanges(); //This changes does not contain the field of arabic changes. } Please let me know, If I am approaching in a right way.
×
×
  • Create New...