Jump to content

rick

Members
  • Posts

    635
  • Joined

  • Last visited

  • Days Won

    6

Posts posted by rick

  1. 15 minutes ago, cstevensjr said:

    cannot save an image or file ... the spinner never stops spinning ... shows 100 percent loaded

    Howdy @cstevensjr

    This sounds familiar in that I seem to recall similar symptoms mentioned in the forum (but cannot locate it) which I believe turned out to be related to permissions. I think it was due to the host running a script that inadvertently changed the permissions. I'll post the topic if I can locate it. In the meantime, can you verify if set_time_limit has been disabled on that account?

    • Like 1
  2. You aren't saving the redirect_last field. Also, I don't think it is necessary to test the counter prior to redirecting. Try this and see if it fits your needs.

    if ($input->urlSegment(1) === 'redirect') {
        $page->of(false);
    
        $page->redirect_last = time();
        $page->redirect_counter += 1;
    
        $page->save();
    
        $session->redirect($page->website_url, 302);
    
    }

     

    • Like 1
    • Haha 1
  3. 5 minutes ago, Marco Ro said:

    I know ovh. I only used it once, it seems like a good service, but I did have problems with customer support and one time the server broken down bad for hours.

    Well then I'll remove ovh option. ? I haven't used ovh, it was the only other European provider I could think of at the time.

    Nice site!

  4. Howdy @darkanglesima(Seema) and welcome to the forum!

    You'll find this community very active both in development and in strategy. Feel free to ask any questions. There will be many to contribute.

    As for me, I'm an old-school programmer since the 70s. I currently work primarily as a SaaS developer so I don't design web sites per se as there are many far more skillful people that do a much better job than I. I've contracted with IBM, Strategic Air Comand (B-1B), and various federal financial organizations. I am a diver, pilot, amateur radio operator, fisherman, and drinker of fine scotches. Not necessarily in that order. ?

    Again, welcome and enjoy!

    • Haha 1
  5. @adrian. Just an fyi,

    I just upgraded tracy. Looking at the Adminer settings, it presents the check for update option. However, selecting that option returns the following error:

    ProcessModule: Error reported by web service: That module is not currently tracked by the modules directory

    Is it necessary to have the check for update option for adminer?

  6. Hi @johnstephens,

    The reference to 11067 in your path represents the page id, so you can't create your own identifiers for the folder names and have them each refer to the same processwire page. But since your application is using the current page ($page->id) you could either create unique filenames or add a unique identifier as a tag to each file, then reference the filename (or tag) for inclusion in the attribute. Using tags might be the simplest route if there are no other tags being used. If there are other tags, you might want to use a custom field for those files as your reference point.

  7. I haven't worked with mongo in years. From what I remember it is not a SQL type database, rather a document (json) type database. As such there is no "driver" to connect the database to ProcessWire as with PDO (Unless things have changed in those years).

    That being said, you could write a json parser to import the documents from mongo to create pages in PW. You say that you are not a developer, so this task will be quite complex, depending on the document references. I would not recommend you take on such a project. Is it possible to hire a developer to accomplish your task? (Assuming you want to migrate from mongo to mysql).

  8. I'm not sure where to post this so I've placed it here.

    I'm currently trying to clean up an application. By clean up, I mean removing all php notices, warnings, blah blah blah.

    When uploading an image, php uses a tmp_name without an extension (but does include the dot) eg, abcfedphp.

    This produces a php notice from Pagefile.php relating to the missing extension reference on lines 216 and 219.

    I'm not going to be changing any core files.

    How would you address this?

  9. I have an image field with SVG as one of the allowed file types. However, when I try to upload an SVG image in page edit, I get the following error:

    Error
    Call to undefined function ProcessWire\simplexml_load_string()
    
    File: .../www/cre8aplace/wire/core/Pageimage.php:533
    
    523:         * @return array of width and height
    524:         *
    525:         */
    526:        protected function getImageInfoSVG($filename = '') {
    527:            $width = 0;
    528:            $height = 0;
    529:            if(!$filename) $filename = $this->filename;
    530:            $xml = @file_get_contents($filename);
    531:            
    532:            if($xml) {
    533:                $a = @simplexml_load_string($xml)->attributes();
    534:                if((int) $a->width > 0) $width = (int) $a->width;
    535:                if((int) $a->height > 0) $height = (int) $a->height;
    536:            }
    537:            
    

    Other image types load fine. I haven't seen a post relating to this issue, so I assume it's pilot error again. ?

    Is there some special field setting I have missed or is this an actual bug?

    Is it a continuation of the git issue regarding dimension attributes?

    <svg id="e532202f-8294-4472-8a94-ef01c23bf434" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1111.01" height="589.53" viewBox="0 0 1111.01 589.53">

    There is no attributes section in the file. The dimensions are included in the header as shown.

     

  10. Mobile first is a front-end concept. It really doesn't matter which back-end CMS you use to serve data. Obviously ProcessWire is the best solution. ? Personally, I prefer the blank profile to start most projects.

    The responsive approach is in the name, mobile first. Start with whichever CSS you prefer (Bootstrap, etc.) and design from mobile upward. I find it easier to sketch the mobile interface on a whiteboard, then sketch at the additional breakpoints, noting the changes for each. A clear map up front will save you many headaches later.

    It's all personal preference as to which CSS framework , profile, javascript library, etc. that you want to use.

    • Like 2
×
×
  • Create New...