• I have Codeigniter integrated with WordPress in that I can render Codeigniter pages within the WordPress shell. I used the method in this link; https://rivers-media.com/wordpress-and-codeigniter-together-at-last/

    My problem now is that no WordPress pages render. All I get is a blank page. I was thinking that I could create a Codeigniter controller that would render a WordPress page. All I would need is the call that, given a page ID, would render the page. Does anyone know of such a render call?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator bcworkz

    (@bcworkz)

    Because page content is generated by theme templates, there is no one function you can call to render a page. I would look more closely at why WP is not rendering its own pages. Do you have WP_DEBUG defined as true? Maybe that blank page is due to a PHP error, turning on debug will tell you what that error is ( or check your error logs ).

    Thread Starter joe.klovance

    (@joeklovance)

    Thank you so much that helped a lot. Now I am getting the following error.
    WARNING: STREAM_SOCKET_CLIENT(): UNABLE TO CONNECT TO TCP://127.0.0.1:8180 (CONNECTION REFUSED) IN /MEDIA/SF_CONFMAN2/WORDPRESS/WP-INCLUDES/CLASS-HTTP.PHP ON LINE 1021.
    I hope it is just a .htaccess bug.

    Moderator bcworkz

    (@bcworkz)

    I think it’s stranger than .htaccess. Something was trying to connect to the same server via TCP/HTTP on port 8180 and it was refused. AFAIK 8180 is unusual. The section of code on line 1021 relates to opening an SSL connection, which should normally be on port 443. At least on WP v4.3.1 – which version are you running?

    Is this site running on localhost? SSL on localhost is a bit odd unless it was specifically invoked.

    Until you get this figured out, eliminate any distractions. Disable all plugins and run WP with one of the default themes like twentyfifteen. If applicable, do something similar with CI.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WordPress with codeigniter’ is closed to new replies.