• The URLs in the generated files have duplicate paths and slashes. No links to posts work. Plus CSS files and static assets do not link correctly as a result of this.

    For example, a generated link:
    domain.com/wp-content/plugins/really-static/static//wp-content/plugins/really-static/static/my-post-name/

    This should be, but no file is found there either:
    domain.com/wp-content/plugins/really-static/static/my-post-name/

    I am using version 0.31 of this plugin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Erik

    (@eriksef)

    sounds to me like a configuration error. Please use the debugfunction or send me an email (also writen down at the debug function), if you are interested solving this problem.

    Thread Starter Mike Bijon

    (@mbijon)

    It was setup with your quick configurator using the file system option, then I only made changes related to my Windows dev box needing backslashes in the path.

    Three different types of error reports are below…

    —-

    The following errors are reported on plugin activation (my dev DB is named “wp_new”):

    Really-static is now generating
    Please wait!
    WordPress database error: [Table 'wp_new.wpnew_realstatic' doesn't exist]
    SELECT datum FROM wpnew_realstatic where url='707bc335987d0312a8a8acf82e111bd7'
    
    WordPress database error: [Table 'wp_new.wpnew_realstatic' doesn't exist]
    SELECT datum FROM wpnew_realstatic where url='44e3a6e167df306d5dc68d0aeadf908a'
    
    WordPress database error: [Table 'wp_new.wpnew_realstatic' doesn't exist]
    SELECT datum FROM wpnew_realstatic where url='00a4361bdc046edf48bb0e25e2acb35f'
    
    WordPress database error: [Table 'wp_new.wpnew_realstatic' doesn't exist]
    SELECT datum FROM wpnew_realstatic where url='f6ee295d3e9591eaef1c81078a67b649'
    
    WordPress database error: [Table 'wp_new.wpnew_realstatic' doesn't exist]
    SELECT datum FROM wpnew_realstatic where url='5269787122b2076d45e3a782577ad799'

    —-

    The following errors are logged when I view a page on the frontend of my site. These are reported o every pageload when Really Static is active, and are not logged when your plugin is deactivated:

    WARNING: C:\xampp\htdocs\wpnew\wp-includes\wp-db.php:1219 - mysql_fetch_object(): supplied argument is not a valid MySQL result resource
    NOTICE: C:\xampp\htdocs\wpnew\wp-content\plugins\really-static\rewrite.php:182 - Use of undefined constant per_page - assumed 'per_page'
    NOTICE: C:\xampp\htdocs\wpnew\wp-content\plugins\really-static\rewrite.php:186 - Use of undefined constant page - assumed 'page'

    —-

    Here is your Debug function report. Note that the errors I am seeing also occur on production release of the WordPress 3.5 on this same computer:

    Fileversion: December 31 2012 / 05:37:28
    Relaseid: 0.520121211
    Language: en_US
    Wordpressversion: 3.6-alpha-23230
    
    CURL: available
    file_get_contents: available
    allow_url_fopen: active
    
    Local: https://wpnew.local/
    Remote: https://wpnew.local/wp-content/plugins/really-static/static/
    
    Local Design: https://wpnew.local/wp-content/themes/2012b/
    Remote Design: https://wpnew.local/wp-content/themes/2012b/
    Permastructure: /%postname%/
    Last 40 Logfileentrys:
    =====================
     30 Dec 2012 21:45:23: writing: sample-page/index.html 370913 Byte
    30 Dec 2012 21:45:23: Writing ImageFile:
    30 Dec 2012 21:45:23: Writing ImageFile:
    30 Dec 2012 21:45:23: Writing ImageFile:
    30 Dec 2012 21:45:23: Writing ImageFile:
    30 Dec 2012 21:45:22: Writing ImageFile:
    30 Dec 2012 21:45:22: Writing ImageFile:
    30 Dec 2012 21:45:16: get https://wpnew.local/sample-page/
    30 Dec 2012 21:45:16: writing: podcasts/index.html 369879 Byte
    30 Dec 2012 21:45:16: Writing ImageFile:
    30 Dec 2012 21:45:16: Writing ImageFile:
    30 Dec 2012 21:45:16: Writing ImageFile:
    30 Dec 2012 21:45:16: Writing ImageFile:
    30 Dec 2012 21:45:16: Writing ImageFile:
    30 Dec 2012 21:45:16: Writing ImageFile:
    30 Dec 2012 21:45:10: get https://wpnew.local/podcasts/
    30 Dec 2012 21:45:10: writing: 2012/03/index.html 42376 Byte
    30 Dec 2012 21:45:04: get https://wpnew.local/2012/03/
    30 Dec 2012 21:45:04: writing: 2012/03/11/index.html 42439 Byte
    30 Dec 2012 21:44:59: get https://wpnew.local/2012/03/11/
    30 Dec 2012 21:44:59: writing: hello-world/index.html 50418 Byte
    30 Dec 2012 21:44:53: get https://wpnew.local/hello-world/
    30 Dec 2012 21:44:53: writing: 2012/10/index.html 42737 Byte
    30 Dec 2012 21:44:46: get https://wpnew.local/2012/10/
    30 Dec 2012 21:44:46: writing: 2012/10/15/index.html 42249 Byte
    30 Dec 2012 21:44:41: get https://wpnew.local/2012/10/15/
    30 Dec 2012 21:44:41: writing: 321/index.html 46213 Byte
    30 Dec 2012 21:44:35: get https://wpnew.local/321/
    30 Dec 2012 21:44:35: writing: 2012/index.html 42944 Byte
    30 Dec 2012 21:44:30: get https://wpnew.local/2012/
    30 Dec 2012 21:44:30: writing: 2012/11/index.html 42133 Byte
    30 Dec 2012 21:44:24: get https://wpnew.local/2012/11/
    30 Dec 2012 21:44:24: writing: 2012/11/26/index.html 42194 Byte
    30 Dec 2012 21:44:19: get https://wpnew.local/2012/11/26/
    30 Dec 2012 21:44:19: writing: category/uncategorized/index.html 45979 Byte
    30 Dec 2012 21:44:13: get https://wpnew.local/category/uncategorized
    30 Dec 2012 21:44:13: writing: author/admin/index.html 42699 Byte
    30 Dec 2012 21:44:08: get https://wpnew.local/author/admin
    30 Dec 2012 21:44:08: writing: bluebox-test/index.html 47891 Byte
    30 Dec 2012 21:44:03: get https://wpnew.local/bluebox-test/
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘URLs do not rewrite correctly in generated files’ is closed to new replies.