Jump to content

Rodd

Members
  • Posts

    16
  • Joined

  • Last visited

Posts posted by Rodd

  1. Hi everybody!

    I have an issue with Sassify. When I want to compile my .scss file in .css, I only have an import of the .scss file into the .css file. But before the SASS was really compiled in CSS, and I don't understand what happened in the meantime.

    Can someone help me to resolve or understand this?

    Thanks by advance!

  2. Hi everyone,

    I'm not sure it's possible, but I'm asking. Maybe someone has a solution. Is it possible, when you want to create a template in the Processwire dashboard, to specify a template file from another folder which is different of the Template folder?

    In fact, I don't want to change the actual source which is the folder. I just want to find a way to recognize my templates which can be in a folder which is in the template folder, and use the find() function like this :

    <?php 
    
    $childChildren = $pages->find("template=templatesWhichAreInTheSpecificFolder, sort=sort");
    ?>

    I don't know if you understand my demand, but if you want more details, don't hesitate to ask.

    Thanks by advance!

  3. Ok, I found the solution. I had to execute this to lines :

    Quote
    
    sudo apt install libapache2-mod-php
    sudo a2enmod php7.4

    That seem ridiculous but yeah, I had php 7.4 but I didn't have the PHP module (libapache2-mod-php) for my Apache webserver.

    Now I can have my project in a local environment... But I still have an issue ;(

    This is about the database. I made an export of my website in production which contains a .sql file. But when I import it in my local database, I don't have the datas displayed on the website.

    I use My SQL Workbench in order to manage the datas. When I do a simple query like 

    SELECT * FROM website.field_body;

    I have a result. So The import was correct. This is I don't know why it cannot display on the website

    If anyone can help me on this issue, thnaks by advance again!

  4. Eydun, thank you for your answer. But I didn't find a log file somewhere else than in the apache folder.

    I don't have Tracy, but thanks for this. I'll install it when my issue will be resolved.

    I try another way with an apache configuration instead of using MAMP. Let me explain:
    I created a virtualhost in the '/etc/apache2' folder. Here is my .conf file

    <VirtualHost *:80>
            ServerName dev.mywebsite.com
            ServerAlias www.dev.mywebsite.com
            DocumentRoot "/mnt/d/Websites/mywebsite"
            <Directory "/mnt/d/Websites/mywebsite">
                    Options +FollowSymLinks
                    AllowOverride all
                    Require all granted
                    Options Indexes
            </Directory>
            ErrorLog /var/log/apache2/error.dev.mywebsite.com.log
            CustomLog /var/log/apache2/access.dev.mywebsite.com.log combined
    </VirtualHost>

    I modified the 'hosts' file with this two lines

    127.0.0.1       dev.mywebsite.com
    ::1     		dev.mywebsite.com

    Then I reloaded the service apache2.

    But I still have a problem. Indeed, when I go to 'dev.mywebsite.com', I have a page with the code of the index.php, and I don't know why. I thought it was because php, but I have the version php 7.4.3.

    This is another way in order to resolve my first problem which is to launch my project locally without no longer working when I shut down my computer.

    Can you help me? 

    Thanks by advance!

  5. Hi everybody!

    A few days ago, I wanted to recover the site I have in a production environment on a local environment. It's done ... or almost. 

    First of all, I use WampServer.

    Then, when I recover the site and install it for the first time, everything goes well, I can navigate on the site and develop as I wish. But as soon as I turn off my computer and turn it back on the next day, I can no longer access it. I have an error with the message:

    Quote

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Error has been logged.

    I looked at the log file, and I saw that I was still logged in as a guest and not as an admin. How can I fix this? Is there another solution that would allow me to continue to develop my site?

    Thanks by advance!

  6. Hi everyone!

    I almost did it. So I'm gonna share what I did for people who can have the same issue

    I checked my log first, and I saw that I was connected with the guest user and not the admin user. Anyway, I uninstalled the project and reinstalled a new one.
    For this, I created a new project with the master version of Processwire (with the multi-language option). I replaced the content of my database by the database that I have for my website in production - same tables, same fields, just content which is new.
    Then, I put the templates that I have on my Gitlab plus modules and assets. I used the 'ProcessPagesExportImport' module and saw what I had to do for fields and templates before to import my pages. Almost all of my pages are on the website in the local environment.

    But I still have a problem. This is the error that I have.

    Quote

    Fatal Error: Uncaught Error: Call to a member function setLanguageValue() on null in /Users/ilyas/Documents/yuzu-gaming/wire/modules/LanguageSupport/FieldtypeTextLanguage.module:144
    Stack trace:
    #0 /Users/ilyas/Documents/yuzu-gaming/wire/modules/LanguageSupport/FieldtypeTextareaLanguage.module(114): ProcessWire\FieldtypeTextLanguage->___importValue(Object(ProcessWire\Page), Object(ProcessWire\Field), Array, Array)
    #1 [internal function]: ProcessWire\FieldtypeTextareaLanguage->___importValue(Object(ProcessWire\Page), Object(ProcessWire\Field), Array, Array)
    #2 /Users/ilyas/Documents/yuzu-gaming/wire/core/Wire.php(392): call_user_func_array(Array, Array)
    #3 /Users/ilyas/Documents/yuzu-gaming/wire/core/WireHooks.php(823): ProcessWire\Wire->_callMethod('___importValue', Array)
    #4 /Users/ilyas/Documents/yuzu-gaming/wire/core/Wire.php(450): ProcessWire\WireHooks->runHooks(Object(ProcessWire\FieldtypeTextareaLanguage), 'importValue', Array)
    #5 /Users/ilyas/Documents/yuzu-gaming/wire/core/PagesExportImport.php(957): ProcessWire\W (line 144 of /Users/ilyas/Documents/yuzu-gaming/wire/modules/LanguageSupport/FieldtypeTextLanguage.module)


    This error message was shown because: you are logged in as a Superuser. Error has been logged.

    So yeah I installed the FieldtypeTextareaLanguage module, and used it for a field, but I don't understand why I've got this error. I installed the repeater module too, and there is no problem with it.
    Maybe someone can help me for this?

    Thanks by advance

  7. Hi everyone!

    I have a website in a production environment and I want to duplicate it in a local environment. I exported the content of the website (with the 'Site Profile Exporter' module) but I cannot use it actually. I've got an issue with the database. I imported this one in MAMP then.

    I also exported the pages (with the 'ProcessPagesExportImport' module), but I cannot import it to my local website because the fields don't exist. So I created this fields, but I have this error :

    Quote

    SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'field_video' already exists

    How can I use the elements that already exist and are presents in my database? How can I duplicate correctly the templates, fields and pages?

    Thanks by advance

    PS: Sorry if my english is bad

     

  8. Hi everybody!

    I'm trying to use this form

    But I have a issue. In the post giannisok says to put this line in "partials/contact/_controller.php" (I don't use the other option)

    require(dirname(__FILE__) . "/../../vendor/vlucas/valitron/src/Valitron/Validator.php");

    It doesn't work. I have this message in my contact page instead : 

    Quote

    Compile Error: require(): Failed opening required '/mnt/d/myWebsite/site/templates/partials/contact/../../vendor/vlucas/valitron/src/Valitron/Validator.php' (include_path='.:/usr/share/php:/usr/share/pear') (line 4 of /mnt/d/myWebsite/site/templates/partials/contact/_controller.php) 

    This error is in my development environment. I try to put the file in my ftp. The only difference is :

    Quote

    (include_path='.:/usr/local/php5.6/lib/php')

    I don't think this is the problem, but I'm not sure. 
    Can someone help me please? Sorry I'm not good with PHP..

    Thanks by advance !

  9. Hi everybody,

    First of all, sorry if the topic isn't in the right section.

    Then, I'm here because I did a website with ProcessWire in order to replace an old Wordpress website. The website is almost ready and I'm gonna host it on OVH. But I saw this topic and now I have some doubts

    Also, since we already have a Wordpress site currently hosted, can there be any concerns about the database aspect? I mean if I put my ProcessWire site (so with the corresponding database), would I have any problems with the Wordpress database?

    Thanks by advance for your answers

×
×
  • Create New...